set up testing

This commit is contained in:
Pablo Martin 2024-06-03 18:46:34 +02:00
parent 6494c0ce58
commit 881cdf0091
2 changed files with 19 additions and 1 deletions

10
.vscode/settings.json vendored
View file

@ -6,5 +6,13 @@
"source.organizeImports": "explicit"
},
},
"isort.args":["--profile", "black"],
"isort.args": [
"--profile",
"black"
],
"python.testing.pytestArgs": [
"tests"
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
}

10
tests/test_smoke_test.py Normal file
View file

@ -0,0 +1,10 @@
from click.testing import CliRunner
from xexe.cli import smoke_test
def test_smoke_test():
runner = CliRunner()
result = runner.invoke(smoke_test)
assert result.exit_code == 0
assert "Oink oink!" in result.output