diff --git a/README.md b/README.md index af710855..2a58cc81 100644 --- a/README.md +++ b/README.md @@ -19,11 +19,11 @@ Python as a network service. ## Tests -Run suite -`poetry run python -m pytest tests/* -v -s` +Run suite: +`poetry run pytest` -To enable debug logging use `--log-cli-level`: -`poetry run python -m pytest tests/* -v -s --log-cli-level=DEBUG` +To enable more granular log levels: +`poetry run pytest --log-cli-level=INFO` ## Example Main diff --git a/poetry.lock b/poetry.lock index 59c9bfa7..8def4ee2 100644 --- a/poetry.lock +++ b/poetry.lock @@ -241,24 +241,6 @@ pluggy = ">=1.5,<2" [package.extras] dev = ["argcomplete", "attrs (>=19.2)", "hypothesis (>=3.56)", "mock", "pygments (>=2.7.2)", "requests", "setuptools", "xmlschema"] -[[package]] -name = "pytest-asyncio" -version = "0.24.0" -description = "Pytest support for asyncio" -optional = false -python-versions = ">=3.8" -files = [ - {file = "pytest_asyncio-0.24.0-py3-none-any.whl", hash = "sha256:a811296ed596b69bf0b6f3dc40f83bcaf341b155a269052d82efa2b25ac7037b"}, - {file = "pytest_asyncio-0.24.0.tar.gz", hash = "sha256:d081d828e576d85f875399194281e92bf8a68d60d72d1a2faf2feddb6c46b276"}, -] - -[package.dependencies] -pytest = ">=8.2,<9" - -[package.extras] -docs = ["sphinx (>=5.3)", "sphinx-rtd-theme (>=1.0)"] -testing = ["coverage (>=6.2)", "hypothesis (>=5.7.1)"] - [[package]] name = "sniffio" version = "1.3.1" @@ -298,4 +280,4 @@ h11 = ">=0.9.0,<1" [metadata] lock-version = "2.0" python-versions = "^3.12" -content-hash = "e8863ca23a2f8bc37d83d0b41e11fe83f6a880f4faff7f086c8a9a545e360187" +content-hash = "3db36d999bf00702369a8ebf4e486e8029d845bfee6e2755d7dd3c25a9c99e27" diff --git a/pyproject.toml b/pyproject.toml index 0a072347..4cf64ae2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,12 +13,9 @@ hypercorn = "^0.17.3" [tool.pytest.ini_options] pythonpath = ["src"] -testpaths = ["tests"] -asyncio_default_fixture_loop_scope = "function" [tool.poetry.group.dev.dependencies] pytest = "^8.3.4" -pytest-asyncio = "^0.24.0" httpx = "^0.28.0" [build-system]