From 163f910d75677523055d418f67976eba1e372c97 Mon Sep 17 00:00:00 2001 From: SouthFox Date: Tue, 13 Jun 2023 17:08:16 +0800 Subject: [PATCH] [chore] add pytest-mock package --- poetry.lock | 19 ++++++++++++++++++- pyproject.toml | 1 + 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/poetry.lock b/poetry.lock index d9580b1..b08f3cd 100644 --- a/poetry.lock +++ b/poetry.lock @@ -358,6 +358,23 @@ pluggy = ">=0.12,<2.0" [package.extras] testing = ["argcomplete", "attrs (>=19.2.0)", "hypothesis (>=3.56)", "mock", "nose", "pygments (>=2.7.2)", "requests", "xmlschema"] +[[package]] +name = "pytest-mock" +version = "3.10.0" +description = "Thin-wrapper around the mock package for easier use with pytest" +optional = false +python-versions = ">=3.7" +files = [ + {file = "pytest-mock-3.10.0.tar.gz", hash = "sha256:fbbdb085ef7c252a326fd8cdcac0aa3b1333d8811f131bdcc701002e1be7ed4f"}, + {file = "pytest_mock-3.10.0-py3-none-any.whl", hash = "sha256:f4c973eeae0282963eb293eb173ce91b091a79c1334455acfac9ddee8a1c784b"}, +] + +[package.dependencies] +pytest = ">=5.0" + +[package.extras] +dev = ["pre-commit", "pytest-asyncio", "tox"] + [[package]] name = "sniffio" version = "1.3.0" @@ -403,4 +420,4 @@ dev = ["black (>=19.3b0)", "pytest (>=4.6.2)"] [metadata] lock-version = "2.0" python-versions = "^3.11" -content-hash = "b16c6aa996d74d46fa21bd64f35c3c6184daffdd9ca03516daf2346e13f02441" +content-hash = "5af9dbc9e7e1b4c8e64883f85527c645ec1277066127b07dc13e89d46813a906" diff --git a/pyproject.toml b/pyproject.toml index 34b988d..f84105a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,6 +14,7 @@ httpx = "^0.24.1" [tool.poetry.group.dev.dependencies] pytest = "^7.3.1" +pytest-mock = "^3.10.0" [build-system] requires = ["poetry-core"]