diff --git a/Makefile b/Makefile index 7ace36f8a..f228a3fed 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,7 @@ test: poetry run pytest test_watch: - poetry run ptw + poetry run ptw --snapshot-update --now . -- -vv -x tests ###################### # LINTING AND FORMATTING diff --git a/poetry.lock b/poetry.lock index 5a769b810..2aa9f8a63 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 1.7.1 and should not be changed by hand. +# This file is automatically @generated by Poetry 1.6.1 and should not be changed by hand. [[package]] name = "aiohttp" @@ -692,16 +692,6 @@ files = [ {file = "defusedxml-0.7.1.tar.gz", hash = "sha256:1bb3032db185915b62d7c6209c5a8792be6a32ab2fedacc84e01b52c51aa3e69"}, ] -[[package]] -name = "docopt" -version = "0.6.2" -description = "Pythonic argument parser, that will make you smile" -optional = false -python-versions = "*" -files = [ - {file = "docopt-0.6.2.tar.gz", hash = "sha256:49b3a825280bd66b3aa83585ef59c4a8c82f2c8a522dbe754a8bc8d08c85c491"}, -] - [[package]] name = "exceptiongroup" version = "1.2.0" @@ -2532,20 +2522,19 @@ pytest = ">=5.0" dev = ["pre-commit", "pytest-asyncio", "tox"] [[package]] -name = "pytest-watch" -version = "4.2.0" -description = "Local continuous test runner with pytest and watchdog." +name = "pytest-watcher" +version = "0.3.4" +description = "Automatically rerun your tests on file modifications" optional = false -python-versions = "*" +python-versions = ">=3.7.0,<4.0.0" files = [ - {file = "pytest-watch-4.2.0.tar.gz", hash = "sha256:06136f03d5b361718b8d0d234042f7b2f203910d8568f63df2f866b547b3d4b9"}, + {file = "pytest_watcher-0.3.4-py3-none-any.whl", hash = "sha256:edd2bd9c8a1fb14d48c9f4947234065eb9b4c1acedc0bf213b1f12501dfcffd3"}, + {file = "pytest_watcher-0.3.4.tar.gz", hash = "sha256:d39491ba15b589221bb9a78ef4bed3d5d1503aed08209b1a138aeb95b9117a18"}, ] [package.dependencies] -colorama = ">=0.3.3" -docopt = ">=0.4.0" -pytest = ">=2.6.4" -watchdog = ">=0.6.0" +tomli = {version = ">=2.0.1,<3.0.0", markers = "python_version < \"3.11\""} +watchdog = ">=2.0.0" [[package]] name = "python-dateutil" @@ -3629,4 +3618,4 @@ testing = ["big-O", "jaraco.functools", "jaraco.itertools", "more-itertools", "p [metadata] lock-version = "2.0" python-versions = ">=3.8.1,<4.0" -content-hash = "4f1c52f5b61024577a687d37a2d42023f6519f31f36f47449779db8f4f3ca355" +content-hash = "d830534e382bb3d1d6d51a55ab7ac6762fbabd0be9c4030578ec920aedd6698b" diff --git a/pyproject.toml b/pyproject.toml index c94b6d9d9..3357125af 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,8 +22,8 @@ pytest-dotenv = "^0.5.2" pytest-asyncio = "^0.20.3" pytest-mock = "^3.10.0" syrupy = "^4.0.2" -pytest-watch = "^4.2.0" httpx = "^0.26.0" +pytest-watcher = "^0.3.4" [tool.poetry.group.lint.dependencies] ruff = "^0.1.4" @@ -67,6 +67,6 @@ asyncio_mode = "auto" # # https://github.com/tophat/syrupy # --snapshot-warn-unused Prints a warning on unused snapshots rather than fail the test suite. -addopts = "-x -vv --full-trace --strict-markers --strict-config --durations=5 --snapshot-warn-unused" +addopts = "--full-trace --strict-markers --strict-config --durations=5 --snapshot-warn-unused" # Registering custom markers. # https://docs.pytest.org/en/7.1.x/example/markers.html#registering-markers