set up testing
This commit is contained in:
parent
6494c0ce58
commit
881cdf0091
2 changed files with 19 additions and 1 deletions
10
.vscode/settings.json
vendored
10
.vscode/settings.json
vendored
|
|
@ -6,5 +6,13 @@
|
||||||
"source.organizeImports": "explicit"
|
"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
10
tests/test_smoke_test.py
Normal 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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue