build: Move test files to the tests/ directory
We don’t want these to install by default.
This commit is contained in:
parent
5cd7cba3df
commit
5ad13cea75
@ -20,6 +20,7 @@ async def main():
|
|||||||
print(msg)
|
print(msg)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
loop = get_event_loop()
|
loop = get_event_loop()
|
||||||
loop.run_until_complete(main())
|
loop.run_until_complete(main())
|
||||||
loop.close()
|
loop.close()
|
||||||
|
@ -23,6 +23,7 @@ async def main():
|
|||||||
await server.listen()
|
await server.listen()
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
loop = get_event_loop()
|
loop = get_event_loop()
|
||||||
loop.run_until_complete(main())
|
loop.run_until_complete(main())
|
||||||
loop.run_forever()
|
loop.run_forever()
|
||||||
|
@ -38,6 +38,19 @@ version_provider = "poetry"
|
|||||||
update_changelog_on_bump = true
|
update_changelog_on_bump = true
|
||||||
major_version_zero = true
|
major_version_zero = true
|
||||||
|
|
||||||
|
[tool.coverage.run]
|
||||||
|
branch = true
|
||||||
|
|
||||||
|
[tool.coverage.report]
|
||||||
|
show_missing = true
|
||||||
|
skip_covered = true
|
||||||
|
fail_under = 91
|
||||||
|
omit = ["examples/*"]
|
||||||
|
|
||||||
|
[tool.pytest.ini_options]
|
||||||
|
addopts = "--cov=. --no-cov-on-fail"
|
||||||
|
ignore = "examples"
|
||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["poetry-core"]
|
requires = ["poetry-core"]
|
||||||
build-backend = "poetry.core.masonry.api"
|
build-backend = "poetry.core.masonry.api"
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
[pytest]
|
|
||||||
addopts = --cov secret_handshake --cov-report term-missing --no-cov-on-fail
|
|
||||||
python_files = secret_handshake/test_*.py
|
|
0
tests/__init__.py
Normal file
0
tests/__init__.py
Normal file
Loading…
Reference in New Issue
Block a user