From f895303e50442cdefa614dde82b5ea256dbac846 Mon Sep 17 00:00:00 2001 From: Harpo Date: Thu, 20 Jul 2023 12:30:18 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=A6=20Mocker=20(#84)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Adds pytest-mock to test dependencies * Adds trio to dependencies --- pdm.lock | 56 +++++++++++++++++++++++++++++++++++++++++++++++++- pyproject.toml | 2 ++ 2 files changed, 57 insertions(+), 1 deletion(-) diff --git a/pdm.lock b/pdm.lock index 3459322a..1c718be5 100644 --- a/pdm.lock +++ b/pdm.lock @@ -6,7 +6,7 @@ groups = ["default", "ci", "dev", "development", "docs", "locust", "production", cross_platform = true static_urls = false lock_version = "4.3" -content_hash = "sha256:6b1f2ba0ce9674a064c4850a68c102b9412a367e5cc65022a26f5796b16e1dd9" +content_hash = "sha256:616d586413c612345ef9da95e725cbccc5c02cf8feb72c59ec3149bfcc38c158" [[package]] name = "alembic" @@ -2266,6 +2266,19 @@ files = [ {file = "orderedmultidict-1.0.1.tar.gz", hash = "sha256:04070bbb5e87291cc9bfa51df413677faf2141c73c61d2a5f7b26bea3cd882ad"}, ] +[[package]] +name = "outcome" +version = "1.2.0" +requires_python = ">=3.7" +summary = "Capture the outcome of Python function calls." +dependencies = [ + "attrs>=19.2.0", +] +files = [ + {file = "outcome-1.2.0-py2.py3-none-any.whl", hash = "sha256:c4ab89a56575d6d38a05aa16daeaa333109c1f96167aba8901ab18b6b5e0f7f5"}, + {file = "outcome-1.2.0.tar.gz", hash = "sha256:6f82bd3de45da303cf1f771ecafa1633750a358436a8bb60e06a1ceb745d2672"}, +] + [[package]] name = "packaging" version = "23.1" @@ -2648,6 +2661,19 @@ files = [ {file = "pytest_cov-4.1.0-py3-none-any.whl", hash = "sha256:6ba70b9e97e69fcc3fb45bfeab2d0a138fb65c4d0d6a41ef33983ad114be8c3a"}, ] +[[package]] +name = "pytest-mock" +version = "3.11.1" +requires_python = ">=3.7" +summary = "Thin-wrapper around the mock package for easier use with pytest" +dependencies = [ + "pytest>=5.0", +] +files = [ + {file = "pytest-mock-3.11.1.tar.gz", hash = "sha256:7f6b125602ac6d743e523ae0bfa71e1a697a2f5534064528c6ff84c2f7c2fc7f"}, + {file = "pytest_mock-3.11.1-py3-none-any.whl", hash = "sha256:21c279fff83d70763b05f8874cc9cfb3fcacd6d354247a976f9529d19f9acf39"}, +] + [[package]] name = "pytest-sugar" version = "0.9.7" @@ -3276,6 +3302,15 @@ files = [ {file = "sonyci-0.1.1.tar.gz", hash = "sha256:38d686c0e4e4691e3acadd48e1de18adbf78f710ea5b8edae642b78033fe4145"}, ] +[[package]] +name = "sortedcontainers" +version = "2.4.0" +summary = "Sorted Containers -- Sorted List, Sorted Dict, Sorted Set" +files = [ + {file = "sortedcontainers-2.4.0-py2.py3-none-any.whl", hash = "sha256:a163dcaede0f1c021485e957a39245190e74249897e2ae4b2aa38595db237ee0"}, + {file = "sortedcontainers-2.4.0.tar.gz", hash = "sha256:25caa5a06cc30b6b83d11423433f65d1f9d76c4c6a0c90e3379eaa43b9bfdb88"}, +] + [[package]] name = "soupsieve" version = "2.4.1" @@ -3481,6 +3516,25 @@ files = [ {file = "traitlets-5.9.0.tar.gz", hash = "sha256:f6cde21a9c68cf756af02035f72d5a723bf607e862e7be33ece505abf4a3bad9"}, ] +[[package]] +name = "trio" +version = "0.22.2" +requires_python = ">=3.7" +summary = "A friendly Python library for async concurrency and I/O" +dependencies = [ + "attrs>=20.1.0", + "cffi>=1.14; os_name == \"nt\" and implementation_name != \"pypy\"", + "exceptiongroup>=1.0.0rc9; python_version < \"3.11\"", + "idna", + "outcome", + "sniffio", + "sortedcontainers", +] +files = [ + {file = "trio-0.22.2-py3-none-any.whl", hash = "sha256:f43da357620e5872b3d940a2e3589aa251fd3f881b65a608d742e00809b1ec38"}, + {file = "trio-0.22.2.tar.gz", hash = "sha256:3887cf18c8bcc894433420305468388dac76932e9668afa1c49aa3806b6accb3"}, +] + [[package]] name = "typing-extensions" version = "4.7.1" diff --git a/pyproject.toml b/pyproject.toml index 3fa7c86f..94e1521b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,6 +44,8 @@ test = [ 'vcrpy~=5.0', 'pytest-vcr~=1.0', 'urllib3~=1.26', + 'pytest-mock>=3.11.1', + "trio>=0.22.2", ] locust = ['locust~=2.15', 'pydantic-factories~=1.17'] development = ['kubernetes>=26.1.0']