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