From 1907a90783165d13a53f600a82cd00dbb75a10ed Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 1 May 2023 17:40:33 +0200 Subject: 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? --- test/test_basic.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/test_basic.py (limited to 'test/test_basic.py') 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 +# 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') -- cgit v1.2.3