build: Move test files to the tests/ directory

We don’t want these to install by default.
This commit is contained in:
Gergely Polonkai 2023-10-30 07:30:26 +01:00
parent 5cd7cba3df
commit 5ad13cea75
No known key found for this signature in database
GPG Key ID: 2D2885533B869ED4
8 changed files with 22 additions and 10 deletions

View File

@ -20,6 +20,7 @@ async def main():
print(msg)
loop = get_event_loop()
loop.run_until_complete(main())
loop.close()
if __name__ == "__main__":
loop = get_event_loop()
loop.run_until_complete(main())
loop.close()

View File

@ -23,7 +23,8 @@ async def main():
await server.listen()
loop = get_event_loop()
loop.run_until_complete(main())
loop.run_forever()
loop.close()
if __name__ == "__main__":
loop = get_event_loop()
loop.run_until_complete(main())
loop.run_forever()
loop.close()

View File

@ -38,6 +38,19 @@ version_provider = "poetry"
update_changelog_on_bump = 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]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

View File

@ -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
View File