diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-05-01 17:40:33 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-05-06 16:24:23 +0200 |
commit | 1907a90783165d13a53f600a82cd00dbb75a10ed (patch) | |
tree | 042b999cb414d1aec9043f4b72f00e3ede84db7b /test/test_basic.py | |
parent | add a cimple-valgrind executable (diff) | |
download | cimple-1907a90783165d13a53f600a82cd00dbb75a10ed.tar.gz cimple-1907a90783165d13a53f600a82cd00dbb75a10ed.zip |
add a couple of the most basic tests using Pytest
I'm super-unsure about this; I don't really like all the magic, but
we'll see, I guess?
Diffstat (limited to 'test/test_basic.py')
-rw-r--r-- | test/test_basic.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/test_basic.py b/test/test_basic.py new file mode 100644 index 0000000..b072384 --- /dev/null +++ b/test/test_basic.py @@ -0,0 +1,16 @@ +# Copyright (c) 2023 Egor Tensin <Egor.Tensin@gmail.com> +# This file is part of the "cimple" project. +# For details, see https://github.com/egor-tensin/cimple. +# Distributed under the MIT License. + +import pytest + + +def test_server_and_workers_run(server_and_workers): + pass + + +def test_client_version(client, version): + ec, output = client.run('--version') + assert ec == 0 + assert output.endswith(version + '\n') |