diff --git a/poetry.lock b/poetry.lock index d4420872..bffbd727 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1163,13 +1163,13 @@ extra = ["pygments (>=2.12)"] [[package]] name = "pytest" -version = "7.4.4" +version = "8.3.2" description = "pytest: simple powerful testing with Python" optional = false -python-versions = ">=3.7" +python-versions = ">=3.8" files = [ - {file = "pytest-7.4.4-py3-none-any.whl", hash = "sha256:b090cdf5ed60bf4c45261be03239c2c1c22df034fbffe691abe93cd80cea01d8"}, - {file = "pytest-7.4.4.tar.gz", hash = "sha256:2cf0005922c6ace4a3e2ec8b4080eb0d9753fdc93107415332f50ce9e7994280"}, + {file = "pytest-8.3.2-py3-none-any.whl", hash = "sha256:4ba08f9ae7dcf84ded419494d229b48d0903ea6407b030eaec46df5e6a73bba5"}, + {file = "pytest-8.3.2.tar.gz", hash = "sha256:c132345d12ce551242c87269de812483f5bcc87cdbb4722e48487ba194f9fdce"}, ] [package.dependencies] @@ -1177,39 +1177,39 @@ colorama = {version = "*", markers = "sys_platform == \"win32\""} exceptiongroup = {version = ">=1.0.0rc8", markers = "python_version < \"3.11\""} iniconfig = "*" packaging = "*" -pluggy = ">=0.12,<2.0" -tomli = {version = ">=1.0.0", markers = "python_version < \"3.11\""} +pluggy = ">=1.5,<2" +tomli = {version = ">=1", markers = "python_version < \"3.11\""} [package.extras] -testing = ["argcomplete", "attrs (>=19.2.0)", "hypothesis (>=3.56)", "mock", "nose", "pygments (>=2.7.2)", "requests", "setuptools", "xmlschema"] +dev = ["argcomplete", "attrs (>=19.2)", "hypothesis (>=3.56)", "mock", "pygments (>=2.7.2)", "requests", "setuptools", "xmlschema"] [[package]] name = "pytest-asyncio" -version = "0.21.2" +version = "0.24.0" description = "Pytest support for asyncio" optional = false -python-versions = ">=3.7" +python-versions = ">=3.8" files = [ - {file = "pytest_asyncio-0.21.2-py3-none-any.whl", hash = "sha256:ab664c88bb7998f711d8039cacd4884da6430886ae8bbd4eded552ed2004f16b"}, - {file = "pytest_asyncio-0.21.2.tar.gz", hash = "sha256:d67738fc232b94b326b9d060750beb16e0074210b98dd8b58a5239fa2a154f45"}, + {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 = ">=7.0.0" +pytest = ">=8.2,<9" [package.extras] docs = ["sphinx (>=5.3)", "sphinx-rtd-theme (>=1.0)"] -testing = ["coverage (>=6.2)", "flaky (>=3.5.0)", "hypothesis (>=5.7.1)", "mypy (>=0.931)", "pytest-trio (>=0.7.0)"] +testing = ["coverage (>=6.2)", "hypothesis (>=5.7.1)"] [[package]] name = "pytest-xprocess" -version = "0.18.1" +version = "1.0.2" description = "A pytest plugin for managing processes across test runs." optional = false -python-versions = ">=3.5" +python-versions = ">=3.8" files = [ - {file = "pytest-xprocess-0.18.1.tar.gz", hash = "sha256:fd9f30ed1584b5833bc34494748adf0fb9de3ca7bacc4e88ad71989c21cba266"}, - {file = "pytest_xprocess-0.18.1-py3-none-any.whl", hash = "sha256:6f2aba817d842518d9d9dfb7e9adfe2a6e354a4359f4166bef0822ef4be1c9db"}, + {file = "pytest-xprocess-1.0.2.tar.gz", hash = "sha256:15e270637586eabc56755ee5fcc81c48bdb46ba7ef7c0d5b1b64302d080cc60f"}, + {file = "pytest_xprocess-1.0.2-py3-none-any.whl", hash = "sha256:0b0444d1f789fd9b4ba8b6b38b1d0139f226ab14091db2698a0521c1770523dd"}, ] [package.dependencies] @@ -1725,4 +1725,4 @@ pytest = ["py", "pytest", "pytest-asyncio", "pytest-xprocess"] [metadata] lock-version = "2.0" python-versions = "^3.9" -content-hash = "f7f7f68c1fd058665f7a2bee23670cb6c804fe2d64bedd2c05eeff9822b254e9" +content-hash = "edd970c4c2b6242ad2683190c09eadee13334928edf65310e90b45155b011aac" diff --git a/pyproject.toml b/pyproject.toml index 01ca453a..4ecf6253 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,9 +15,9 @@ solders = "^0.21.0" borsh-construct = "^0.1.0" websockets = ">=9.0,<11.0" toolz = "^0.11.2" -pytest = { version = "^7.2.0", optional = true } -pytest-xprocess = { version = "^0.18.1", optional = true } -pytest-asyncio = { version = "^0.21.0", optional = true } +pytest = { version = "^8.3.2", optional = true } +pytest-xprocess = { version = "^1.0.2", optional = true } +pytest-asyncio = { version = "^0.24.0", optional = true } more-itertools = "^8.11.0" pyheck = "^0.1.4" typer = { version = "0.4.1", optional = true } @@ -46,9 +46,9 @@ mkdocs-material = "^8.1.7" bump2version = "^1.0.1" mkdocstrings = "^0.17.0" py = "^1.11.0" -pytest = "^7.2.0" -pytest-asyncio = "^0.21.0" -pytest-xprocess = "^0.18.1" +pytest = "^8.3.2" +pytest-asyncio = "^0.24.0" +pytest-xprocess = "^1.0.2" ruff = "^0.0.220" [tool.poetry.plugins.pytest11] diff --git a/src/anchorpy/pytest_plugin.py b/src/anchorpy/pytest_plugin.py index ba876ff9..b586ba0b 100644 --- a/src/anchorpy/pytest_plugin.py +++ b/src/anchorpy/pytest_plugin.py @@ -8,7 +8,7 @@ from pytest import fixture from pytest_asyncio import fixture as async_fixture -from pytest_xprocess import getrootdir +from xprocess.pytest_xprocess import getrootdir from solders.account import Account from solders.pubkey import Pubkey from xprocess import ProcessStarter, XProcess, XProcessInfo