Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add more lint rules and update CONTRIBUTING (#14509)
Patryk Zawadzkie521e996640c
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.jsonindex d2330ba23a..1ba973dae3 100644--- a/.devcontainer/devcontainer.json+++ b/.devcontainer/devcontainer.json@@ -26,10 +26,6 @@"Cameron.vscode-pytest","charliermarsh.ruff","editorconfig.editorconfig",- "ms-python.black-formatter",- "ms-python.flake8",- "ms-python.isort",- "ms-python.pylint","ms-python.python","ms-python.vscode-pylance","streetsidesoftware.code-spell-checker"diff --git a/.github/workflows/notify/notify-slack.py b/.github/workflows/notify/notify-slack.pyindex a7bbf8e5f7..e410e8cafd 100755--- a/.github/workflows/notify/notify-slack.py+++ b/.github/workflows/notify/notify-slack.py@@ -88,7 +88,7 @@ class JobNotifier:def send_notification(self) -> None:post_data = self.make_slack_message()- print(f"Notifying slack with payload: {post_data!r}", file=sys.stderr)+ print(f"Notifying slack with payload: {post_data!r}", file=sys.stderr) # noqa: T201response = requests.post( # nosemgrep: no-requests-libself.slack_endpoint, json=post_data)diff --git a/.gitignore b/.gitignoreindex b714f58c6f..ad9cb08154 100644--- a/.gitignore+++ b/.gitignore@@ -4,7 +4,6 @@!.dockerignore!.github!.gitignore-!.pylintrc!.vscode*.log*.potdiff --git a/.pre-commit-config.yaml b/.pre-commit-config.yamlindex 60ae8b95bf..d9f30450b0 100644--- a/.pre-commit-config.yaml+++ b/.pre-commit-config.yaml@@ -10,7 +10,7 @@ repos:exclude: ^templates/templated_email/compiled/exclude_types: [svg]- - repo: https://github.com/charliermarsh/ruff-pre-commit+ - repo: https://github.com/astral-sh/ruff-pre-commitrev: v0.1.2hooks:- id: ruffdiff --git a/.pylintrc b/.pylintrcdeleted file mode 100644index d4bdd97961..0000000000--- a/.pylintrc+++ /dev/null@@ -1,14 +0,0 @@-[MASTER]-load-plugins=pylint.extensions.bad_builtin, pylint.extensions.mccabe, pylint_celery, pylint_django-django-settings-module=saleor.settings--[MESSAGES CONTROL]-disable=C0103, C0111, I0011, R0903, W0621, W0622, W0707--[DESIGN]-max-complexity=5-max-line-length = 88--[SIMILARITIES]-ignore-imports=yes-min-similarity-lines=8diff --git a/.vscode/extensions.json b/.vscode/extensions.jsonindex d0f74a7764..38dfb1542e 100644--- a/.vscode/extensions.json+++ b/.vscode/extensions.json@@ -1,10 +1,9 @@{"recommendations": [+ "Cameron.vscode-pytest","charliermarsh.ruff","editorconfig.editorconfig","github.vscode-pull-request-github",- "ms-python.black-formatter",- "ms-python.pylint","ms-python.python","ms-python.vscode-pylance","streetsidesoftware.code-spell-checker"diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex ba212eeeb6..d1c56aa429 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -62,15 +62,7 @@ Module names should make their purpose obvious. Avoid generic file names such as### Linters-Use [black](https://github.com/python/black/) to make sure your code is correctly formatted.--Use [isort](https://github.com/timothycrosley/isort) to maintain consistent imports.--Use [pylint](https://www.pylint.org/) with the `pylint-django` plugin to catch errors in your code.--Use [pycodestyle](http://pycodestyle.pycqa.org/en/latest/) to make sure your code adheres to PEP 8.--Use [pydocstyle](http://pydocstyle.pycqa.org/en/latest/) to check that your docstrings are properly formatted.+Use [ruff](https://github.com/astral-sh/ruff) to check and format your code.## EditorConfigdiff --git a/conftest.py b/conftest.pyindex f560739c5a..9cfa6fe2e5 100644--- a/conftest.py+++ b/conftest.py@@ -54,7 +54,7 @@ def pytest_collection_modifyitems(config, items):if os.environ.get("PYTEST_DB_URL"):@pytest.fixture(scope="session")- def django_db_setup():+ def django_db_setup(): # noqa: PT004settings.DATABASES = {settings.DATABASE_CONNECTION_DEFAULT_NAME: dj_database_url.config(env="PYTEST_DB_URL", conn_max_age=600diff --git a/poetry.lock b/poetry.lockindex 92b29dd0fc..a7b81bc34d 100644--- a/poetry.lock+++ b/poetry.lock@@ -1,10 +1,9 @@-# This file is automatically @generated by Poetry 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 = "adyen"version = "4.0.0"description = "Adyen Python Api"-category = "main"optional = falsepython-versions = "*"files = [@@ -15,7 +14,6 @@ files = [name = "amqp"version = "5.1.1"description = "Low-level AMQP client for Python (fork of amqplib)."-category = "main"optional = falsepython-versions = ">=3.6"files = [@@ -30,7 +28,6 @@ vine = ">=5.0.0"name = "aniso8601"version = "7.0.0"description = "A library for parsing ISO 8601 strings."-category = "main"optional = falsepython-versions = "*"files = [@@ -42,7 +39,6 @@ files = [name = "anyio"version = "4.0.0"description = "High level compatibility layer for multiple asynchronous event loop implementations"-category = "main"optional = falsepython-versions = ">=3.8"files = [@@ -64,7 +60,6 @@ trio = ["trio (>=0.22)"]name = "asgiref"version = "3.7.2"description = "ASGI specs, helper code, and adapters"-category = "main"optional = falsepython-versions = ">=3.7"files = [@@ -78,28 +73,10 @@ typing-extensions = {version = ">=4", markers = "python_version < \"3.11\""}[package.extras]tests = ["mypy (>=0.800)", "pytest", "pytest-asyncio"]-[[package]]-name = "astroid"-version = "2.15.8"-description = "An abstract syntax tree for Python with inference support."-category = "dev"-optional = false-python-versions = ">=3.7.2"-files = [- {file = "astroid-2.15.8-py3-none-any.whl", hash = "sha256:1aa149fc5c6589e3d0ece885b4491acd80af4f087baafa3fb5203b113e68cd3c"},- {file = "astroid-2.15.8.tar.gz", hash = "sha256:6c107453dffee9055899705de3c9ead36e74119cee151e5a9aaf7f0b0e020a6a"},-]--[package.dependencies]-lazy-object-proxy = ">=1.4.0"-typing-extensions = {version = ">=4.0.0", markers = "python_version < \"3.11\""}-wrapt = {version = ">=1.11,<2", markers = "python_version < \"3.11\""}-[[package]]name = "async-timeout"version = "4.0.3"description = "Timeout context manager for asyncio programs"-category = "main"optional = falsepython-versions = ">=3.7"files = [@@ -111,7 +88,6 @@ files = [name = "attrs"version = "23.1.0"description = "Classes Without Boilerplate"-category = "dev"optional = falsepython-versions = ">=3.7"files = [@@ -130,7 +106,6 @@ tests-no-zope = ["cloudpickle", "hypothesis", "mypy (>=1.1.1)", "pympler", "pytename = "authlib"version = "1.2.1"description = "The ultimate Python library in building OAuth and OpenID Connect servers and clients."-category = "main"optional = falsepython-versions = "*"files = [@@ -145,7 +120,6 @@ cryptography = ">=3.2"name = "authorizenet"version = "1.1.4"description = "Authorize.Net Python SDK"-category = "main"optional = falsepython-versions = "*"files = [@@ -153,15 +127,14 @@ files = [][package.dependencies]-lxml = ">=4.0.0,<5.0.0"+lxml = "==4.*"pyxb = "1.2.5"-requests = ">=2.0.0,<3.0.0"+requests = "==2.*"[[package]]name = "azure-common"version = "1.1.28"description = "Microsoft Azure Client Library for Python (Common)"-category = "main"optional = falsepython-versions = "*"files = [@@ -173,7 +146,6 @@ files = [name = "azure-core"version = "1.29.5"description = "Microsoft Azure Core Library for Python"-category = "main"optional = falsepython-versions = ">=3.7"files = [@@ -193,7 +165,6 @@ aio = ["aiohttp (>=3.0)"]name = "azure-storage-blob"version = "12.18.3"description = "Microsoft Azure Blob Storage Client Library for Python"-category = "main"optional = falsepython-versions = ">=3.7"files = [@@ -214,7 +185,6 @@ aio = ["azure-core[aio] (>=1.28.0,<2.0.0)"]name = "azure-storage-common"version = "2.1.0"description = "Microsoft Azure Storage Common Client Library for Python"-category = "main"optional = falsepython-versions = "*"files = [@@ -232,7 +202,6 @@ requests = "*"name = "babel"version = "2.13.0"description = "Internationalization utilities"-category = "main"optional = falsepython-versions = ">=3.7"files = [@@ -247,7 +216,6 @@ dev = ["freezegun (>=1.0,<2.0)", "pytest (>=6.0)", "pytest-cov"]name = "bcrypt"version = "4.0.1"description = "Modern password hashing for your software and your servers"-category = "main"optional = falsepython-versions = ">=3.6"files = [@@ -282,7 +250,6 @@ typecheck = ["mypy"]name = "beautifulsoup4"version = "4.7.1"description = "Screen-scraping library"-category = "main"optional = falsepython-versions = "*"files = [@@ -302,7 +269,6 @@ lxml = ["lxml"]name = "beautifultable"version = "0.7.0"description = "Print ASCII tables for terminals"-category = "dev"optional = falsepython-versions = "*"files = [@@ -314,7 +280,6 @@ files = [name = "before-after"version = "1.0.1"description = "before_after provides utilities for testing race conditions"-category = "dev"optional = falsepython-versions = "*"files = [@@ -328,7 +293,6 @@ mock = "1.0.1"name = "billiard"version = "4.1.0"description = "Python multiprocessing fork with improvements and bugfixes"-category = "main"optional = falsepython-versions = ">=3.7"files = [@@ -336,58 +300,10 @@ files = [{file = "billiard-4.1.0.tar.gz", hash = "sha256:1ad2eeae8e28053d729ba3373d34d9d6e210f6e4d8bf0a9c64f92bd053f1edf5"},]-[[package]]-name = "black"-version = "23.9.1"-description = "The uncompromising code formatter."-category = "dev"-optional = false-python-versions = ">=3.8"-files = [- {file = "black-23.9.1-cp310-cp310-macosx_10_16_arm64.whl", hash = "sha256:d6bc09188020c9ac2555a498949401ab35bb6bf76d4e0f8ee251694664df6301"},- {file = "black-23.9.1-cp310-cp310-macosx_10_16_universal2.whl", hash = "sha256:13ef033794029b85dfea8032c9d3b92b42b526f1ff4bf13b2182ce4e917f5100"},- {file = "black-23.9.1-cp310-cp310-macosx_10_16_x86_64.whl", hash = "sha256:75a2dc41b183d4872d3a500d2b9c9016e67ed95738a3624f4751a0cb4818fe71"},- {file = "black-23.9.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:13a2e4a93bb8ca74a749b6974925c27219bb3df4d42fc45e948a5d9feb5122b7"},- {file = "black-23.9.1-cp310-cp310-win_amd64.whl", hash = "sha256:adc3e4442eef57f99b5590b245a328aad19c99552e0bdc7f0b04db6656debd80"},- {file = "black-23.9.1-cp311-cp311-macosx_10_16_arm64.whl", hash = "sha256:8431445bf62d2a914b541da7ab3e2b4f3bc052d2ccbf157ebad18ea126efb91f"},- {file = "black-23.9.1-cp311-cp311-macosx_10_16_universal2.whl", hash = "sha256:8fc1ddcf83f996247505db6b715294eba56ea9372e107fd54963c7553f2b6dfe"},- {file = "black-23.9.1-cp311-cp311-macosx_10_16_x86_64.whl", hash = "sha256:7d30ec46de88091e4316b17ae58bbbfc12b2de05e069030f6b747dfc649ad186"},- {file = "black-23.9.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:031e8c69f3d3b09e1aa471a926a1eeb0b9071f80b17689a655f7885ac9325a6f"},- {file = "black-23.9.1-cp311-cp311-win_amd64.whl", hash = "sha256:538efb451cd50f43aba394e9ec7ad55a37598faae3348d723b59ea8e91616300"},- {file = "black-23.9.1-cp38-cp38-macosx_10_16_arm64.whl", hash = "sha256:638619a559280de0c2aa4d76f504891c9860bb8fa214267358f0a20f27c12948"},- {file = "black-23.9.1-cp38-cp38-macosx_10_16_universal2.whl", hash = "sha256:a732b82747235e0542c03bf352c126052c0fbc458d8a239a94701175b17d4855"},- {file = "black-23.9.1-cp38-cp38-macosx_10_16_x86_64.whl", hash = "sha256:cf3a4d00e4cdb6734b64bf23cd4341421e8953615cba6b3670453737a72ec204"},- {file = "black-23.9.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:cf99f3de8b3273a8317681d8194ea222f10e0133a24a7548c73ce44ea1679377"},- {file = "black-23.9.1-cp38-cp38-win_amd64.whl", hash = "sha256:14f04c990259576acd093871e7e9b14918eb28f1866f91968ff5524293f9c573"},- {file = "black-23.9.1-cp39-cp39-macosx_10_16_arm64.whl", hash = "sha256:c619f063c2d68f19b2d7270f4cf3192cb81c9ec5bc5ba02df91471d0b88c4c5c"},- {file = "black-23.9.1-cp39-cp39-macosx_10_16_universal2.whl", hash = "sha256:6a3b50e4b93f43b34a9d3ef00d9b6728b4a722c997c99ab09102fd5efdb88325"},- {file = "black-23.9.1-cp39-cp39-macosx_10_16_x86_64.whl", hash = "sha256:c46767e8df1b7beefb0899c4a95fb43058fa8500b6db144f4ff3ca38eb2f6393"},- {file = "black-23.9.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:50254ebfa56aa46a9fdd5d651f9637485068a1adf42270148cd101cdf56e0ad9"},- {file = "black-23.9.1-cp39-cp39-win_amd64.whl", hash = "sha256:403397c033adbc45c2bd41747da1f7fc7eaa44efbee256b53842470d4ac5a70f"},- {file = "black-23.9.1-py3-none-any.whl", hash = "sha256:6ccd59584cc834b6d127628713e4b6b968e5f79572da66284532525a042549f9"},- {file = "black-23.9.1.tar.gz", hash = "sha256:24b6b3ff5c6d9ea08a8888f6977eae858e1f340d7260cf56d70a49823236b62d"},-]--[package.dependencies]-click = ">=8.0.0"-mypy-extensions = ">=0.4.3"-packaging = ">=22.0"-pathspec = ">=0.9.0"-platformdirs = ">=2"-tomli = {version = ">=1.1.0", markers = "python_version < \"3.11\""}-typing-extensions = {version = ">=4.0.1", markers = "python_version < \"3.11\""}--[package.extras]-colorama = ["colorama (>=0.4.3)"]-d = ["aiohttp (>=3.7.4)"]-jupyter = ["ipython (>=7.8.0)", "tokenize-rt (>=3.2.0)"]-uvloop = ["uvloop (>=0.15.2)"]-[[package]]name = "boltons"version = "21.0.0"description = "When they're not builtins, they're boltons."-category = "dev"optional = falsepython-versions = "*"files = [@@ -399,7 +315,6 @@ files = [name = "boto3"version = "1.28.69"description = "The AWS SDK for Python"-category = "main"optional = falsepython-versions = ">= 3.7"files = [@@ -419,7 +334,6 @@ crt = ["botocore[crt] (>=1.21.0,<2.0a0)"]name = "botocore"version = "1.31.69"description = "Low-level, data-driven core of boto 3."-category = "main"optional = falsepython-versions = ">= 3.7"files = [@@ -439,7 +353,6 @@ crt = ["awscrt (==0.16.26)"]name = "bracex"version = "2.4"description = "Bash style brace expander."-category = "dev"optional = falsepython-versions = ">=3.8"files = [@@ -451,7 +364,6 @@ files = [name = "braintree"version = "4.22.0"description = "Braintree Python Library"-category = "main"optional = falsepython-versions = "*"files = [@@ -466,7 +378,6 @@ requests = ">=0.11.1,<3.0"name = "brotli"version = "1.1.0"description = "Python bindings for the Brotli compression library"-category = "main"optional = falsepython-versions = "*"files = [@@ -559,7 +470,6 @@ files = [name = "brotlicffi"version = "1.1.0.0"description = "Python CFFI bindings to the Brotli library"-category = "main"optional = falsepython-versions = ">=3.7"files = [@@ -599,7 +509,6 @@ cffi = ">=1.0.0"name = "cachetools"version = "5.3.1"description = "Extensible memoizing collections and decorators"-category = "main"optional = falsepython-versions = ">=3.7"files = [@@ -611,7 +520,6 @@ files = [name = "celery"version = "5.3.4"description = "Distributed Task Queue."-category = "main"optional = falsepython-versions = ">=3.8"files = [@@ -668,7 +576,6 @@ zstd = ["zstandard (==0.21.0)"]name = "certifi"version = "2023.7.22"description = "Python package for providing Mozilla's CA Bundle."-category = "main"optional = falsepython-versions = ">=3.6"files = [@@ -680,7 +587,6 @@ files = [name = "cffi"version = "1.16.0"description = "Foreign Function Interface for Python calling C code."-category = "main"optional = falsepython-versions = ">=3.8"files = [@@ -745,7 +651,6 @@ pycparser = "*"name = "cfgv"version = "3.4.0"description = "Validate configuration and produce human readable error messages."-category = "dev"optional = falsepython-versions = ">=3.8"files = [@@ -757,7 +662,6 @@ files = [name = "charset-normalizer"version = "3.3.1"description = "The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet."-category = "main"optional = falsepython-versions = ">=3.7.0"files = [@@ -857,7 +761,6 @@ files = [name = "click"version = "8.1.7"description = "Composable command line interface toolkit"-category = "main"optional = falsepython-versions = ">=3.7"files = [@@ -872,7 +775,6 @@ colorama = {version = "*", markers = "platform_system == \"Windows\""}name = "click-didyoumean"version = "0.3.0"description = "Enables git-like *did-you-mean* feature in click"-category = "main"optional = falsepython-versions = ">=3.6.2,<4.0.0"files = [@@ -887,7 +789,6 @@ click = ">=7"name = "click-option-group"version = "0.5.6"description = "Option groups missing in Click"-category = "dev"optional = falsepython-versions = ">=3.6,<4"files = [@@ -907,7 +808,6 @@ tests-cov = ["coverage", "coveralls", "pytest", "pytest-cov"]name = "click-plugins"version = "1.1.1"description = "An extension module for click to enable registering CLI commands via setuptools entry-points."-category = "main"optional = falsepython-versions = "*"files = [@@ -925,7 +825,6 @@ dev = ["coveralls", "pytest (>=3.6)", "pytest-cov", "wheel"]name = "click-repl"version = "0.3.0"description = "REPL plugin for Click"-category = "main"optional = falsepython-versions = ">=3.6"files = [@@ -944,7 +843,6 @@ testing = ["pytest (>=7.2.1)", "pytest-cov (>=4.0.0)", "tox (>=4.4.3)"]name = "colorama"version = "0.4.6"description = "Cross-platform colored terminal text."-category = "main"optional = falsepython-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7"files = [@@ -956,7 +854,6 @@ files = [name = "coverage"version = "7.3.2"description = "Code coverage measurement for Python"-category = "dev"optional = falsepython-versions = ">=3.8"files = [@@ -1024,7 +921,6 @@ toml = ["tomli"]name = "cron-descriptor"version = "1.4.0"description = "A Python library that converts cron expressions into human readable strings."-category = "main"optional = falsepython-versions = "*"files = [@@ -1038,7 +934,6 @@ dev = ["polib"]name = "cryptography"version = "41.0.4"description = "cryptography is a package which provides cryptographic recipes and primitives to Python developers."-category = "main"optional = falsepython-versions = ">=3.7"files = [@@ -1084,7 +979,6 @@ test-randomorder = ["pytest-randomly"]name = "cssselect2"version = "0.7.0"description = "CSS selectors for Python ElementTree"-category = "main"optional = falsepython-versions = ">=3.7"files = [@@ -1104,7 +998,6 @@ test = ["flake8", "isort", "pytest"]name = "defusedxml"version = "0.7.1"description = "XML bomb protection for Python stdlib modules"-category = "dev"optional = falsepython-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"files = [@@ -1112,26 +1005,10 @@ files = [{file = "defusedxml-0.7.1.tar.gz", hash = "sha256:1bb3032db185915b62d7c6209c5a8792be6a32ab2fedacc84e01b52c51aa3e69"},]-[[package]]-name = "dill"-version = "0.3.7"-description = "serialize all of Python"-category = "dev"-optional = false-python-versions = ">=3.7"-files = [- {file = "dill-0.3.7-py3-none-any.whl", hash = "sha256:76b122c08ef4ce2eedcd4d1abd8e641114bfc6c2867f49f3c41facf65bf19f5e"},- {file = "dill-0.3.7.tar.gz", hash = "sha256:cc1c8b182eb3013e24bd475ff2e9295af86c1a38eb1aff128dac8962a9ce3c03"},-]--[package.extras]-graph = ["objgraph (>=1.7.2)"]-[[package]]name = "distlib"version = "0.3.7"description = "Distribution utilities"-category = "dev"optional = falsepython-versions = "*"files = [@@ -1143,7 +1020,6 @@ files = [name = "dj-database-url"version = "2.1.0"description = "Use Database URLs in your Django Application."-category = "main"optional = falsepython-versions = "*"files = [@@ -1159,7 +1035,6 @@ typing-extensions = ">=3.10.0.0"name = "dj-email-url"version = "1.0.6"description = "Use an URL to configure email backend settings in your Django Application."-category = "main"optional = falsepython-versions = "*"files = [@@ -1171,7 +1046,6 @@ files = [name = "django"version = "3.2.22"description = "A high-level Python Web framework that encourages rapid development and clean, pragmatic design."-category = "main"optional = falsepython-versions = ">=3.6"files = [@@ -1193,7 +1067,6 @@ bcrypt = ["bcrypt"]name = "django-appconf"version = "1.0.5"description = "A helper class for handling configuration defaults of packaged apps gracefully."-category = "main"optional = falsepython-versions = ">=3.6"files = [@@ -1208,7 +1081,6 @@ django = "*"name = "django-cache-url"version = "3.4.4"description = "Use Cache URLs in your Django application."-category = "main"optional = falsepython-versions = "*"files = [@@ -1220,7 +1092,6 @@ files = [name = "django-celery-beat"version = "2.5.0"description = "Database-backed Periodic Tasks."-category = "main"optional = falsepython-versions = "*"files = [@@ -1240,7 +1111,6 @@ tzdata = "*"name = "django-countries"version = "7.5.1"description = "Provides a country field for Django models."-category = "main"optional = falsepython-versions = "*"files = [@@ -1262,7 +1132,6 @@ test = ["djangorestframework", "graphene-django", "pytest", "pytest-cov", "pytesname = "django-debug-toolbar"version = "4.2.0"description = "A configurable set of panels that display various debug information about the current request/response."-category = "dev"optional = falsepython-versions = ">=3.8"files = [@@ -1278,7 +1147,6 @@ sqlparse = ">=0.2"name = "django-debug-toolbar-request-history"version = "0.1.4"description = "Request History Panel for Django Debug Toolbar"-category = "dev"optional = falsepython-versions = "*"files = [@@ -1292,7 +1160,6 @@ django-debug-toolbar = ">=2.0"name = "django-extensions"version = "3.2.3"description = "Extensions for Django"-category = "dev"optional = falsepython-versions = ">=3.6"files = [@@ -1307,7 +1174,6 @@ Django = ">=3.2"name = "django-filter"version = "23.3"description = "Django-filter is a reusable Django application for allowing users to filter querysets dynamically."-category = "main"optional = falsepython-versions = ">=3.7"files = [@@ -1322,7 +1188,6 @@ Django = ">=3.2"name = "django-graphiql-debug-toolbar"version = "0.2.0"description = "Django Debug Toolbar for GraphiQL IDE."-category = "dev"optional = falsepython-versions = ">=3.6,<4.0"files = [@@ -1339,7 +1204,6 @@ graphene-django = ">=2.0.0"name = "django-js-asset"version = "2.1.0"description = "script tag with additional attributes for django.forms.Media"-category = "main"optional = falsepython-versions = ">=3.8"files = [@@ -1357,7 +1221,6 @@ tests = ["coverage"]name = "django-measurement"version = "3.2.4"description = "Convenient fields and classes for handling measurements"-category = "main"optional = falsepython-versions = "*"files = [@@ -1374,7 +1237,6 @@ measurement = ">=1.6,<4.0"name = "django-mptt"version = "0.15.0"description = "Utilities for implementing Modified Preorder Tree Traversal with your Django Models and working with trees of Model instances."-category = "main"optional = falsepython-versions = ">=3.9"files = [@@ -1392,7 +1254,6 @@ tests = ["coverage[toml]", "mock-django"]name = "django-phonenumber-field"version = "7.2.0"description = "An international phone number field for django models."-category = "main"optional = falsepython-versions = ">=3.8"files = [@@ -1411,7 +1272,6 @@ phonenumberslite = ["phonenumberslite (>=7.0.2)"]name = "django-prices"version = "2.3.0"description = "Django fields for the prices module"-category = "main"optional = falsepython-versions = "*"files = [@@ -1429,7 +1289,6 @@ prices = ">=1.0.0"name = "django-redis"version = "5.4.0"description = "Full featured redis cache backend for Django."-category = "main"optional = falsepython-versions = ">=3.6"files = [@@ -1448,7 +1307,6 @@ hiredis = ["redis[hiredis] (>=3,!=4.0.0,!=4.0.1)"]name = "django-storages"version = "1.14.2"description = "Support for many storage backends in Django"-category = "main"optional = falsepython-versions = ">=3.7"files = [@@ -1473,7 +1331,6 @@ sftp = ["paramiko (>=1.15)"]name = "django-stubs"version = "1.16.0"description = "Mypy stubs for Django"-category = "dev"optional = falsepython-versions = ">=3.7"files = [@@ -1497,7 +1354,6 @@ compatible-mypy = ["mypy (>=1.1.1,<1.2)"]name = "django-stubs-ext"version = "4.2.5"description = "Monkey-patching and extensions for django-stubs"-category = "main"optional = falsepython-versions = ">=3.8"files = [@@ -1513,7 +1369,6 @@ typing-extensions = "*"name = "django-timezone-field"version = "6.0.1"description = "A Django app providing DB, form, and REST framework fields for zoneinfo and pytz timezone objects."-category = "main"optional = falsepython-versions = ">=3.8,<4.0"files = [@@ -1528,7 +1383,6 @@ Django = ">=3.2,<5.0"name = "draftjs-sanitizer"version = "1.0.0"description = "Convert basic HTML into DraftJS JSON format."-category = "main"optional = falsepython-versions = "*"files = [@@ -1545,7 +1399,6 @@ dev = ["mock", "pre-commit", "pytest"]name = "enmerkar"version = "0.7.1"description = "Utilities for using Babel in Django"-category = "main"optional = falsepython-versions = "*"files = [@@ -1561,7 +1414,6 @@ django = ">=2.2"name = "et-xmlfile"version = "1.1.0"description = "An implementation of lxml.xmlfile for the standard library"-category = "main"optional = falsepython-versions = ">=3.6"files = [@@ -1573,7 +1425,6 @@ files = [name = "exceptiongroup"version = "1.1.3"description = "Backport of PEP 654 (exception groups)"-category = "main"optional = falsepython-versions = ">=3.7"files = [@@ -1588,7 +1439,6 @@ test = ["pytest (>=6)"]name = "execnet"version = "2.0.2"description = "execnet: rapid multi-Python deployment"-category = "dev"optional = falsepython-versions = ">=3.7"files = [@@ -1603,7 +1453,6 @@ testing = ["hatch", "pre-commit", "pytest", "tox"]name = "face"version = "22.0.0"description = "A command-line application framework (and CLI parser). Friendly for users, full-featured for developers."-category = "dev"optional = falsepython-versions = "*"files = [@@ -1618,7 +1467,6 @@ boltons = ">=20.0.0"name = "faker"version = "19.11.0"description = "Faker is a Python package that generates fake data for you."-category = "main"optional = falsepython-versions = ">=3.8"files = [@@ -1633,7 +1481,6 @@ python-dateutil = ">=2.4"name = "fakeredis"version = "2.20.0"description = "Python implementation of redis API, can be used for testing purposes."-category = "dev"optional = falsepython-versions = ">=3.7,<4.0"files = [@@ -1654,7 +1501,6 @@ lua = ["lupa (>=1.14,<3.0)"]name = "filelock"version = "3.12.4"description = "A platform independent file lock."-category = "dev"optional = falsepython-versions = ">=3.8"files = [@@ -1667,28 +1513,10 @@ docs = ["furo (>=2023.7.26)", "sphinx (>=7.1.2)", "sphinx-autodoc-typehints (>=1testing = ["covdefaults (>=2.3)", "coverage (>=7.3)", "diff-cover (>=7.7)", "pytest (>=7.4)", "pytest-cov (>=4.1)", "pytest-mock (>=3.11.1)", "pytest-timeout (>=2.1)"]typing = ["typing-extensions (>=4.7.1)"]-[[package]]-name = "flake8"-version = "4.0.1"-description = "the modular source code checker: pep8 pyflakes and co"-category = "dev"-optional = false-python-versions = ">=3.6"-files = [- {file = "flake8-4.0.1-py2.py3-none-any.whl", hash = "sha256:479b1304f72536a55948cb40a32dce8bb0ffe3501e26eaf292c7e60eb5e0428d"},- {file = "flake8-4.0.1.tar.gz", hash = "sha256:806e034dda44114815e23c16ef92f95c91e4c71100ff52813adf7132a6ad870d"},-]--[package.dependencies]-mccabe = ">=0.6.0,<0.7.0"-pycodestyle = ">=2.8.0,<2.9.0"-pyflakes = ">=2.4.0,<2.5.0"-[[package]]name = "fonttools"version = "4.43.1"description = "Tools to manipulate font files"-category = "main"optional = falsepython-versions = ">=3.8"files = [@@ -1759,7 +1587,6 @@ woff = ["brotli (>=1.0.1)", "brotlicffi (>=0.8.0)", "zopfli (>=0.1.4)"]name = "freezegun"version = "1.2.2"description = "Let your Python tests travel through time"-category = "main"optional = falsepython-versions = ">=3.6"files = [@@ -1774,7 +1601,6 @@ python-dateutil = ">=2.7"name = "glom"version = "22.1.0"description = "A declarative object transformer and formatter, for conglomerating nested data."-category = "dev"optional = falsepython-versions = "*"files = [@@ -1794,7 +1620,6 @@ yaml = ["PyYAML"]name = "google-api-core"version = "2.12.0"description = "Google API client core library"-category = "main"optional = falsepython-versions = ">=3.7"files = [@@ -1819,7 +1644,6 @@ grpcio-gcp = ["grpcio-gcp (>=0.2.2,<1.0.dev0)"]name = "google-auth"version = "2.23.3"description = "Google Authentication Library"-category = "main"optional = falsepython-versions = ">=3.7"files = [@@ -1843,7 +1667,6 @@ requests = ["requests (>=2.20.0,<3.0.0.dev0)"]name = "google-cloud-core"version = "2.3.3"description = "Google Cloud API client core library"-category = "main"optional = falsepython-versions = ">=3.7"files = [@@ -1852,7 +1675,7 @@ files = [][package.dependencies]-google-api-core = ">=1.31.6,<2.0.0 || >2.3.0,<3.0.0dev"+google-api-core = ">=1.31.6,<2.0.dev0 || >2.3.0,<3.0.0dev"google-auth = ">=1.25.0,<3.0dev"[package.extras]@@ -1862,7 +1685,6 @@ grpc = ["grpcio (>=1.38.0,<2.0dev)"]name = "google-cloud-pubsub"version = "2.18.4"description = "Google Cloud Pub/Sub API client library"-category = "main"optional = falsepython-versions = ">=3.7"files = [@@ -1871,7 +1693,7 @@ files = [][package.dependencies]-google-api-core = {version = ">=1.34.0,<2.0.0 || >=2.11.0,<3.0.0dev", extras = ["grpc"]}+google-api-core = {version = ">=1.34.0,<2.0.dev0 || >=2.11.dev0,<3.0.0dev", extras = ["grpc"]}grpc-google-iam-v1 = ">=0.12.4,<1.0.0dev"grpcio = ">=1.51.3,<2.0dev"grpcio-status = ">=1.33.2"@@ -1885,7 +1707,6 @@ libcst = ["libcst (>=0.3.10)"]name = "google-cloud-storage"version = "2.12.0"description = "Google Cloud Storage API client library"-category = "main"optional = falsepython-versions = ">=3.7"files = [@@ -1894,7 +1715,7 @@ files = [][package.dependencies]-google-api-core = ">=1.31.5,<2.0.0 || >2.3.0,<3.0.0dev"+google-api-core = ">=1.31.5,<2.0.dev0 || >2.3.0,<3.0.0dev"google-auth = ">=2.23.3,<3.0dev"google-cloud-core = ">=2.3.0,<3.0dev"google-crc32c = ">=1.0,<2.0dev"@@ -1908,7 +1729,6 @@ protobuf = ["protobuf (<5.0.0dev)"]name = "google-crc32c"version = "1.5.0"description = "A python wrapper of the C library 'Google CRC32C'"-category = "main"optional = falsepython-versions = ">=3.7"files = [@@ -1989,7 +1809,6 @@ testing = ["pytest"]name = "google-i18n-address"version = "3.1.0"description = "Address validation helpers for Google's i18n address database"-category = "main"optional = falsepython-versions = "*"files = [@@ -2008,7 +1827,6 @@ test = ["pytest", "pytest-cov"]name = "google-resumable-media"version = "2.6.0"description = "Utilities for Google Media Downloads and Resumable Uploads"-category = "main"optional = falsepython-versions = ">= 3.7"files = [@@ -2027,7 +1845,6 @@ requests = ["requests (>=2.18.0,<3.0.0dev)"]name = "googleapis-common-protos"version = "1.61.0"description = "Common protobufs used in Google APIs"-category = "main"optional = falsepython-versions = ">=3.7"files = [@@ -2046,7 +1863,6 @@ grpc = ["grpcio (>=1.44.0,<2.0.0.dev0)"]name = "graphene"version = "2.1.9"description = "GraphQL Framework for Python"-category = "main"optional = falsepython-versions = "*"files = [@@ -2069,7 +1885,6 @@ test = ["coveralls", "fastdiff (==0.2.0)", "iso8601", "mock", "promise", "pytestname = "graphene-django"version = "2.16.0"description = "Graphene Django integration"-category = "dev"optional = falsepython-versions = "*"files = [@@ -2094,7 +1909,6 @@ test = ["coveralls", "django-filter (>=2)", "djangorestframework (>=3.6.3)", "moname = "graphql-core"version = "2.3.2"description = "GraphQL implementation for Python"-category = "main"optional = falsepython-versions = "*"files = [@@ -2115,7 +1929,6 @@ test = ["coveralls (==1.11.1)", "cython (==0.29.17)", "gevent (==1.5.0)", "pyannname = "graphql-relay"version = "2.0.1"description = "Relay implementation for Python"-category = "main"optional = falsepython-versions = "*"files = [@@ -2132,7 +1945,6 @@ six = ">=1.12"name = "grpc-google-iam-v1"version = "0.12.6"description = "IAM API client library"-category = "main"optional = falsepython-versions = ">=3.7"files = [@@ -2149,7 +1961,6 @@ protobuf = ">=3.19.5,<3.20.0 || >3.20.0,<3.20.1 || >3.20.1,<4.21.1 || >4.21.1,<4name = "grpcio"version = "1.59.0"description = "HTTP/2-based RPC framework"-category = "main"optional = falsepython-versions = ">=3.7"files = [@@ -2216,7 +2027,6 @@ protobuf = ["grpcio-tools (>=1.59.0)"]name = "grpcio-status"version = "1.59.0"description = "Status proto mapping for gRPC"-category = "main"optional = falsepython-versions = ">=3.6"files = [@@ -2233,7 +2043,6 @@ protobuf = ">=4.21.6"name = "gunicorn"version = "21.2.0"description = "WSGI HTTP Server for UNIX"-category = "main"optional = falsepython-versions = ">=3.5"files = [@@ -2254,7 +2063,6 @@ tornado = ["tornado (>=0.2)"]name = "h11"version = "0.14.0"description = "A pure-Python, bring-your-own-I/O implementation of HTTP/1.1"-category = "main"optional = falsepython-versions = ">=3.7"files = [@@ -2266,7 +2074,6 @@ files = [name = "html-to-draftjs"version = "1.0.1"description = "Convert basic HTML into DraftJS JSON format."-category = "main"optional = falsepython-versions = "*"files = [@@ -2284,7 +2091,6 @@ dev = ["mock", "pre-commit", "pytest"]name = "html2text"version = "2020.1.16"description = "Turn HTML into equivalent Markdown-structured text."-category = "main"optional = falsepython-versions = ">=3.5"files = [@@ -2296,7 +2102,6 @@ files = [name = "html5lib"version = "1.1"description = "HTML parser based on the WHATWG HTML specification"-category = "main"optional = falsepython-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"files = [@@ -2318,7 +2123,6 @@ lxml = ["lxml"]name = "httptools"version = "0.6.1"description = "A collection of framework independent HTTP protocol utils."-category = "main"optional = falsepython-versions = ">=3.8.0"files = [@@ -2367,7 +2171,6 @@ test = ["Cython (>=0.29.24,<0.30.0)"]name = "identify"version = "2.5.30"description = "File identification library for Python"-category = "dev"optional = falsepython-versions = ">=3.8"files = [@@ -2382,7 +2185,6 @@ license = ["ukkonen"]name = "idna"version = "3.4"description = "Internationalized Domain Names in Applications (IDNA)"-category = "main"optional = falsepython-versions = ">=3.5"files = [@@ -2394,7 +2196,6 @@ files = [name = "importlib-metadata"version = "6.8.0"description = "Read metadata from Python packages"-category = "main"optional = falsepython-versions = ">=3.8"files = [@@ -2414,7 +2215,6 @@ testing = ["flufl.flake8", "importlib-resources (>=1.3)", "packaging", "pyfakefsname = "iniconfig"version = "2.0.0"description = "brain-dead simple config-ini parsing"-category = "main"optional = falsepython-versions = ">=3.7"files = [@@ -2426,7 +2226,6 @@ files = [name = "isodate"version = "0.6.1"description = "An ISO 8601 date/time/duration parser and formatter"-category = "main"optional = falsepython-versions = "*"files = [@@ -2437,29 +2236,10 @@ files = [[package.dependencies]six = "*"-[[package]]-name = "isort"-version = "5.12.0"-description = "A Python utility / library to sort Python imports."-category = "dev"-optional = false-python-versions = ">=3.8.0"-files = [- {file = "isort-5.12.0-py3-none-any.whl", hash = "sha256:f84c2818376e66cf843d497486ea8fed8700b340f308f076c6fb1229dff318b6"},- {file = "isort-5.12.0.tar.gz", hash = "sha256:8bef7dde241278824a6d83f44a544709b065191b95b6e50894bdc722fcba0504"},-]--[package.extras]-colors = ["colorama (>=0.4.3)"]-pipfile-deprecated-finder = ["pip-shims (>=0.5.2)", "pipreqs", "requirementslib"]-plugins = ["setuptools"]-requirements-deprecated-finder = ["pip-api", "pipreqs"]-[[package]]name = "jaeger-client"version = "4.8.0"description = "Jaeger Python OpenTracing Tracer implementation"-category = "main"optional = falsepython-versions = ">=3.7"files = [@@ -2479,7 +2259,6 @@ tests = ["codecov", "coverage", "flake8", "flake8-quotes", "flake8-typing-importname = "jinja2"version = "3.1.2"description = "A very fast and expressive template engine."-category = "main"optional = falsepython-versions = ">=3.7"files = [@@ -2497,7 +2276,6 @@ i18n = ["Babel (>=2.7)"]name = "jmespath"version = "1.0.1"description = "JSON Matching Expressions"-category = "main"optional = falsepython-versions = ">=3.7"files = [@@ -2509,7 +2287,6 @@ files = [name = "jsonschema"version = "4.19.1"description = "An implementation of JSON Schema validation for Python"-category = "dev"optional = falsepython-versions = ">=3.8"files = [@@ -2531,7 +2308,6 @@ format-nongpl = ["fqdn", "idna", "isoduration", "jsonpointer (>1.13)", "rfc3339-name = "jsonschema-specifications"version = "2023.7.1"description = "The JSON Schema meta-schemas and vocabularies, exposed as a Registry"-category = "dev"optional = falsepython-versions = ">=3.8"files = [@@ -2546,7 +2322,6 @@ referencing = ">=0.28.0"name = "kombu"version = "5.3.2"description = "Messaging library for Python."-category = "main"optional = falsepython-versions = ">=3.8"files = [@@ -2576,57 +2351,10 @@ sqs = ["boto3 (>=1.26.143)", "pycurl (>=7.43.0.5)", "urllib3 (>=1.26.16)"]yaml = ["PyYAML (>=3.10)"]zookeeper = ["kazoo (>=2.8.0)"]-[[package]]-name = "lazy-object-proxy"-version = "1.9.0"-description = "A fast and thorough lazy object proxy."-category = "dev"-optional = false-python-versions = ">=3.7"-files = [- {file = "lazy-object-proxy-1.9.0.tar.gz", hash = "sha256:659fb5809fa4629b8a1ac5106f669cfc7bef26fbb389dda53b3e010d1ac4ebae"},- {file = "lazy_object_proxy-1.9.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:b40387277b0ed2d0602b8293b94d7257e17d1479e257b4de114ea11a8cb7f2d7"},- {file = "lazy_object_proxy-1.9.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e8c6cfb338b133fbdbc5cfaa10fe3c6aeea827db80c978dbd13bc9dd8526b7d4"},- {file = "lazy_object_proxy-1.9.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:721532711daa7db0d8b779b0bb0318fa87af1c10d7fe5e52ef30f8eff254d0cd"},- {file = "lazy_object_proxy-1.9.0-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:66a3de4a3ec06cd8af3f61b8e1ec67614fbb7c995d02fa224813cb7afefee701"},- {file = "lazy_object_proxy-1.9.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:1aa3de4088c89a1b69f8ec0dcc169aa725b0ff017899ac568fe44ddc1396df46"},- {file = "lazy_object_proxy-1.9.0-cp310-cp310-win32.whl", hash = "sha256:f0705c376533ed2a9e5e97aacdbfe04cecd71e0aa84c7c0595d02ef93b6e4455"},- {file = "lazy_object_proxy-1.9.0-cp310-cp310-win_amd64.whl", hash = "sha256:ea806fd4c37bf7e7ad82537b0757999264d5f70c45468447bb2b91afdbe73a6e"},- {file = "lazy_object_proxy-1.9.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:946d27deaff6cf8452ed0dba83ba38839a87f4f7a9732e8f9fd4107b21e6ff07"},- {file = "lazy_object_proxy-1.9.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:79a31b086e7e68b24b99b23d57723ef7e2c6d81ed21007b6281ebcd1688acb0a"},- {file = "lazy_object_proxy-1.9.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f699ac1c768270c9e384e4cbd268d6e67aebcfae6cd623b4d7c3bfde5a35db59"},- {file = "lazy_object_proxy-1.9.0-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:bfb38f9ffb53b942f2b5954e0f610f1e721ccebe9cce9025a38c8ccf4a5183a4"},- {file = "lazy_object_proxy-1.9.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:189bbd5d41ae7a498397287c408617fe5c48633e7755287b21d741f7db2706a9"},- {file = "lazy_object_proxy-1.9.0-cp311-cp311-win32.whl", hash = "sha256:81fc4d08b062b535d95c9ea70dbe8a335c45c04029878e62d744bdced5141586"},- {file = "lazy_object_proxy-1.9.0-cp311-cp311-win_amd64.whl", hash = "sha256:f2457189d8257dd41ae9b434ba33298aec198e30adf2dcdaaa3a28b9994f6adb"},- {file = "lazy_object_proxy-1.9.0-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:d9e25ef10a39e8afe59a5c348a4dbf29b4868ab76269f81ce1674494e2565a6e"},- {file = "lazy_object_proxy-1.9.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:cbf9b082426036e19c6924a9ce90c740a9861e2bdc27a4834fd0a910742ac1e8"},- {file = "lazy_object_proxy-1.9.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9f5fa4a61ce2438267163891961cfd5e32ec97a2c444e5b842d574251ade27d2"},- {file = "lazy_object_proxy-1.9.0-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:8fa02eaab317b1e9e03f69aab1f91e120e7899b392c4fc19807a8278a07a97e8"},- {file = "lazy_object_proxy-1.9.0-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:e7c21c95cae3c05c14aafffe2865bbd5e377cfc1348c4f7751d9dc9a48ca4bda"},- {file = "lazy_object_proxy-1.9.0-cp37-cp37m-win32.whl", hash = "sha256:f12ad7126ae0c98d601a7ee504c1122bcef553d1d5e0c3bfa77b16b3968d2734"},- {file = "lazy_object_proxy-1.9.0-cp37-cp37m-win_amd64.whl", hash = "sha256:edd20c5a55acb67c7ed471fa2b5fb66cb17f61430b7a6b9c3b4a1e40293b1671"},- {file = "lazy_object_proxy-1.9.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:2d0daa332786cf3bb49e10dc6a17a52f6a8f9601b4cf5c295a4f85854d61de63"},- {file = "lazy_object_proxy-1.9.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9cd077f3d04a58e83d04b20e334f678c2b0ff9879b9375ed107d5d07ff160171"},- {file = "lazy_object_proxy-1.9.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:660c94ea760b3ce47d1855a30984c78327500493d396eac4dfd8bd82041b22be"},- {file = "lazy_object_proxy-1.9.0-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:212774e4dfa851e74d393a2370871e174d7ff0ebc980907723bb67d25c8a7c30"},- {file = "lazy_object_proxy-1.9.0-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:f0117049dd1d5635bbff65444496c90e0baa48ea405125c088e93d9cf4525b11"},- {file = "lazy_object_proxy-1.9.0-cp38-cp38-win32.whl", hash = "sha256:0a891e4e41b54fd5b8313b96399f8b0e173bbbfc03c7631f01efbe29bb0bcf82"},- {file = "lazy_object_proxy-1.9.0-cp38-cp38-win_amd64.whl", hash = "sha256:9990d8e71b9f6488e91ad25f322898c136b008d87bf852ff65391b004da5e17b"},- {file = "lazy_object_proxy-1.9.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:9e7551208b2aded9c1447453ee366f1c4070602b3d932ace044715d89666899b"},- {file = "lazy_object_proxy-1.9.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5f83ac4d83ef0ab017683d715ed356e30dd48a93746309c8f3517e1287523ef4"},- {file = "lazy_object_proxy-1.9.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7322c3d6f1766d4ef1e51a465f47955f1e8123caee67dd641e67d539a534d006"},- {file = "lazy_object_proxy-1.9.0-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:18b78ec83edbbeb69efdc0e9c1cb41a3b1b1ed11ddd8ded602464c3fc6020494"},- {file = "lazy_object_proxy-1.9.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:09763491ce220c0299688940f8dc2c5d05fd1f45af1e42e636b2e8b2303e4382"},- {file = "lazy_object_proxy-1.9.0-cp39-cp39-win32.whl", hash = "sha256:9090d8e53235aa280fc9239a86ae3ea8ac58eff66a705fa6aa2ec4968b95c821"},- {file = "lazy_object_proxy-1.9.0-cp39-cp39-win_amd64.whl", hash = "sha256:db1c1722726f47e10e0b5fdbf15ac3b8adb58c091d12b3ab713965795036985f"},-]-[[package]]name = "lxml"version = "4.9.3"description = "Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API."-category = "main"optional = falsepython-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, != 3.4.*"files = [@@ -2734,7 +2462,6 @@ source = ["Cython (>=0.29.35)"]name = "markdown"version = "3.5"description = "Python implementation of John Gruber's Markdown."-category = "main"optional = falsepython-versions = ">=3.8"files = [@@ -2753,7 +2480,6 @@ testing = ["coverage", "pyyaml"]name = "markdown-it-py"version = "3.0.0"description = "Python port of markdown-it. Markdown parsing, done right!"-category = "main"optional = falsepython-versions = ">=3.8"files = [@@ -2778,7 +2504,6 @@ testing = ["coverage", "pytest", "pytest-cov", "pytest-regressions"]name = "markupsafe"version = "2.1.3"description = "Safely add untrusted strings to HTML/XML markup."-category = "main"optional = falsepython-versions = ">=3.7"files = [@@ -2802,6 +2527,16 @@ files = [{file = "MarkupSafe-2.1.3-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:5bbe06f8eeafd38e5d0a4894ffec89378b6c6a625ff57e3028921f8ff59318ac"},{file = "MarkupSafe-2.1.3-cp311-cp311-win32.whl", hash = "sha256:dd15ff04ffd7e05ffcb7fe79f1b98041b8ea30ae9234aed2a9168b5797c3effb"},{file = "MarkupSafe-2.1.3-cp311-cp311-win_amd64.whl", hash = "sha256:134da1eca9ec0ae528110ccc9e48041e0828d79f24121a1a146161103c76e686"},+ {file = "MarkupSafe-2.1.3-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:f698de3fd0c4e6972b92290a45bd9b1536bffe8c6759c62471efaa8acb4c37bc"},+ {file = "MarkupSafe-2.1.3-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:aa57bd9cf8ae831a362185ee444e15a93ecb2e344c8e52e4d721ea3ab6ef1823"},+ {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ffcc3f7c66b5f5b7931a5aa68fc9cecc51e685ef90282f4a82f0f5e9b704ad11"},+ {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:47d4f1c5f80fc62fdd7777d0d40a2e9dda0a05883ab11374334f6c4de38adffd"},+ {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1f67c7038d560d92149c060157d623c542173016c4babc0c1913cca0564b9939"},+ {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:9aad3c1755095ce347e26488214ef77e0485a3c34a50c5a5e2471dff60b9dd9c"},+ {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:14ff806850827afd6b07a5f32bd917fb7f45b046ba40c57abdb636674a8b559c"},+ {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8f9293864fe09b8149f0cc42ce56e3f0e54de883a9de90cd427f191c346eb2e1"},+ {file = "MarkupSafe-2.1.3-cp312-cp312-win32.whl", hash = "sha256:715d3562f79d540f251b99ebd6d8baa547118974341db04f5ad06d5ea3eb8007"},+ {file = "MarkupSafe-2.1.3-cp312-cp312-win_amd64.whl", hash = "sha256:1b8dd8c3fd14349433c79fa8abeb573a55fc0fdd769133baac1f5e07abf54aeb"},{file = "MarkupSafe-2.1.3-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:8e254ae696c88d98da6555f5ace2279cf7cd5b3f52be2b5cf97feafe883b58d2"},{file = "MarkupSafe-2.1.3-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:cb0932dc158471523c9637e807d9bfb93e06a95cbf010f1a38b98623b929ef2b"},{file = "MarkupSafe-2.1.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9402b03f1a1b4dc4c19845e5c749e3ab82d5078d16a2a4c2cd2df62d57bb0707"},@@ -2834,23 +2569,10 @@ files = [{file = "MarkupSafe-2.1.3.tar.gz", hash = "sha256:af598ed32d6ae86f1b747b82783958b1a4ab8f617b06fe68795c7f026abbdcad"},]-[[package]]-name = "mccabe"-version = "0.6.1"-description = "McCabe checker, plugin for flake8"-category = "dev"-optional = false-python-versions = "*"-files = [- {file = "mccabe-0.6.1-py2.py3-none-any.whl", hash = "sha256:ab8a6258860da4b6677da4bd2fe5dc2c659cff31b3ee4f7f5d64e79735b80d42"},- {file = "mccabe-0.6.1.tar.gz", hash = "sha256:dd8d182285a0fe56bace7f45b5e7d1a6ebcbf524e8f3bd87eb0f125271b8831f"},-]-[[package]]name = "mdurl"version = "0.1.2"description = "Markdown URL utilities"-category = "main"optional = falsepython-versions = ">=3.7"files = [@@ -2862,7 +2584,6 @@ files = [name = "measurement"version = "3.2.2"description = "Easily use and manipulate unit-aware measurements in Python."-category = "main"optional = falsepython-versions = ">=3.7"files = [@@ -2881,7 +2602,6 @@ test = ["pytest", "pytest-cov"]name = "memray"version = "1.10.0"description = "A memory profiler for Python applications"-category = "main"optional = falsepython-versions = ">=3.7.0"files = [@@ -2937,7 +2657,6 @@ test = ["Cython", "greenlet", "ipython", "pytest", "pytest-cov", "setuptools"]name = "micawber"version = "0.5.5"description = "a small library for extracting rich content from urls"-category = "main"optional = falsepython-versions = "*"files = [@@ -2948,7 +2667,6 @@ files = [name = "mock"version = "1.0.1"description = "A Python Mocking and Patching Library for Testing"-category = "dev"optional = falsepython-versions = "*"files = [@@ -2960,7 +2678,6 @@ files = [name = "mpmath"version = "1.3.0"description = "Python library for arbitrary-precision floating-point arithmetic"-category = "main"optional = falsepython-versions = "*"files = [@@ -2978,7 +2695,6 @@ tests = ["pytest (>=4.6)"]name = "multidict"version = "6.0.4"description = "multidict implementation"-category = "dev"optional = falsepython-versions = ">=3.7"files = [@@ -3062,7 +2778,6 @@ files = [name = "mypy"version = "1.4.1"description = "Optional static typing for Python"-category = "dev"optional = falsepython-versions = ">=3.7"files = [@@ -3109,7 +2824,6 @@ reports = ["lxml"]name = "mypy-extensions"version = "1.0.0"description = "Type system extensions for programs checked with the mypy type checker."-category = "dev"optional = falsepython-versions = ">=3.5"files = [@@ -3121,7 +2835,6 @@ files = [name = "nodeenv"version = "1.8.0"description = "Node.js virtual environment builder"-category = "dev"optional = falsepython-versions = ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*"files = [@@ -3136,7 +2849,6 @@ setuptools = "*"name = "oauthlib"version = "3.2.2"description = "A generic, spec-compliant, thorough implementation of the OAuth request-signing logic"-category = "main"optional = falsepython-versions = ">=3.6"files = [@@ -3153,7 +2865,6 @@ signedtoken = ["cryptography (>=3.0.0)", "pyjwt (>=2.0.0,<3)"]name = "openpyxl"version = "3.1.2"description = "A Python library to read/write Excel 2010 xlsx/xlsm files"-category = "main"optional = falsepython-versions = ">=3.6"files = [@@ -3168,7 +2879,6 @@ et-xmlfile = "*"name = "opentracing"version = "2.4.0"description = "OpenTracing API for Python. See documentation at http://opentracing.io"-category = "main"optional = falsepython-versions = "*"files = [@@ -3182,7 +2892,6 @@ tests = ["Sphinx", "doubles", "flake8", "flake8-quotes", "gevent", "mock", "pytename = "packaging"version = "23.2"description = "Core utilities for Python packages"-category = "main"optional = falsepython-versions = ">=3.7"files = [@@ -3190,23 +2899,10 @@ files = [{file = "packaging-23.2.tar.gz", hash = "sha256:048fb0e9405036518eaaf48a55953c750c11e1a1b68e0dd1a9d62ed0c092cfc5"},]-[[package]]-name = "pathspec"-version = "0.11.2"-description = "Utility library for gitignore style pattern matching of file paths."-category = "dev"-optional = false-python-versions = ">=3.7"-files = [- {file = "pathspec-0.11.2-py3-none-any.whl", hash = "sha256:1d6ed233af05e679efb96b1851550ea95bbb64b7c490b0f5aa52996c11e92a20"},- {file = "pathspec-0.11.2.tar.gz", hash = "sha256:e0d8d0ac2f12da61956eb2306b69f9469b42f4deb0f3cb6ed47b9cce9996ced3"},-]-[[package]]name = "peewee"version = "3.17.0"description = "a little orm"-category = "dev"optional = falsepython-versions = "*"files = [@@ -3217,7 +2913,6 @@ files = [name = "petl"version = "1.7.14"description = "A Python package for extracting, transforming and loading tables of data."-category = "main"optional = falsepython-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"files = [@@ -3244,7 +2939,6 @@ xpath = ["lxml (>=4.4.0)"]name = "phonenumberslite"version = "8.13.23"description = "Python version of Google's common library for parsing, formatting, storing and validating international phone numbers."-category = "main"optional = falsepython-versions = "*"files = [@@ -3256,7 +2950,6 @@ files = [name = "pillow"version = "10.1.0"description = "Python Imaging Library (Fork)"-category = "main"optional = falsepython-versions = ">=3.8"files = [@@ -3324,7 +3017,6 @@ tests = ["check-manifest", "coverage", "defusedxml", "markdown2", "olefile", "paname = "pillow-avif-plugin"version = "1.4.1"description = "A pillow plugin that adds avif support via libavif"-category = "main"optional = falsepython-versions = "*"files = [@@ -3372,7 +3064,6 @@ files = [name = "platformdirs"version = "3.11.0"description = "A small Python package for determining appropriate platform-specific dirs, e.g. a \"user data dir\"."-category = "dev"optional = falsepython-versions = ">=3.7"files = [@@ -3388,7 +3079,6 @@ test = ["appdirs (==1.4.4)", "covdefaults (>=2.3)", "pytest (>=7.4)", "pytest-coname = "pluggy"version = "1.3.0"description = "plugin and hook calling mechanisms for python"-category = "main"optional = falsepython-versions = ">=3.8"files = [@@ -3404,7 +3094,6 @@ testing = ["pytest", "pytest-benchmark"]name = "posuto"version = "2023.10.0"description = "Japanese Postal Code Data"-category = "main"optional = falsepython-versions = "*"files = [@@ -3415,7 +3104,6 @@ files = [name = "pre-commit"version = "3.5.0"description = "A framework for managing and maintaining multi-language pre-commit hooks."-category = "dev"optional = falsepython-versions = ">=3.8"files = [@@ -3434,7 +3122,6 @@ virtualenv = ">=20.10.0"name = "prices"version = "1.1.1"description = "Python price handling for humans"-category = "main"optional = falsepython-versions = "*"files = [@@ -3449,7 +3136,6 @@ babel = ">=2.5.0"name = "promise"version = "2.3"description = "Promises/A+ implementation for Python"-category = "main"optional = falsepython-versions = "*"files = [@@ -3466,7 +3152,6 @@ test = ["coveralls", "futures", "mock", "pytest (>=2.7.3)", "pytest-benchmark",name = "prompt-toolkit"version = "3.0.39"description = "Library for building powerful interactive command lines in Python"-category = "main"optional = falsepython-versions = ">=3.7.0"files = [@@ -3481,7 +3166,6 @@ wcwidth = "*"name = "proto-plus"version = "1.22.3"description = "Beautiful, Pythonic protocol buffers."-category = "main"optional = falsepython-versions = ">=3.6"files = [@@ -3499,7 +3183,6 @@ testing = ["google-api-core[grpc] (>=1.31.5)"]name = "protobuf"version = "4.24.4"description = ""-category = "main"optional = falsepython-versions = ">=3.7"files = [@@ -3522,7 +3205,6 @@ files = [name = "psycopg2"version = "2.9.9"description = "psycopg2 - Python-PostgreSQL Database Adapter"-category = "main"optional = falsepython-versions = ">=3.7"files = [@@ -3543,7 +3225,6 @@ files = [name = "pyasn1"version = "0.5.0"description = "Pure-Python implementation of ASN.1 types and DER/BER/CER codecs (X.208)"-category = "main"optional = falsepython-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,>=2.7"files = [@@ -3555,7 +3236,6 @@ files = [name = "pyasn1-modules"version = "0.3.0"description = "A collection of ASN.1-based protocols modules"-category = "main"optional = falsepython-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,>=2.7"files = [@@ -3570,7 +3250,6 @@ pyasn1 = ">=0.4.6,<0.6.0"name = "pybars3"version = "0.9.7"description = "Handlebars.js templating for Python 3 and 2"-category = "main"optional = falsepython-versions = "*"files = [@@ -3580,23 +3259,10 @@ files = [[package.dependencies]PyMeta3 = ">=0.5.1"-[[package]]-name = "pycodestyle"-version = "2.8.0"-description = "Python style guide checker"-category = "dev"-optional = false-python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"-files = [- {file = "pycodestyle-2.8.0-py2.py3-none-any.whl", hash = "sha256:720f8b39dde8b293825e7ff02c475f3077124006db4f440dcbc9a20b76548a20"},- {file = "pycodestyle-2.8.0.tar.gz", hash = "sha256:eddd5847ef438ea1c7870ca7eb78a9d47ce0cdb4851a5523949f2601d0cbbe7f"},-]-[[package]]name = "pycparser"version = "2.21"description = "C parser in Python"-category = "main"optional = falsepython-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"files = [@@ -3604,29 +3270,10 @@ files = [{file = "pycparser-2.21.tar.gz", hash = "sha256:e644fdec12f7872f86c58ff790da456218b10f863970249516d60a5eaca77206"},]-[[package]]-name = "pydocstyle"-version = "6.3.0"-description = "Python docstring style checker"-category = "dev"-optional = false-python-versions = ">=3.6"-files = [- {file = "pydocstyle-6.3.0-py3-none-any.whl", hash = "sha256:118762d452a49d6b05e194ef344a55822987a462831ade91ec5c06fd2169d019"},- {file = "pydocstyle-6.3.0.tar.gz", hash = "sha256:7ce43f0c0ac87b07494eb9c0b462c0b73e6ff276807f204d6b53edc72b7e44e1"},-]--[package.dependencies]-snowballstemmer = ">=2.2.0"--[package.extras]-toml = ["tomli (>=1.2.3)"]-[[package]]name = "pydyf"version = "0.8.0"description = "A low-level PDF generator."-category = "main"optional = falsepython-versions = ">=3.7"files = [@@ -3638,23 +3285,10 @@ files = [doc = ["sphinx", "sphinx_rtd_theme"]test = ["flake8", "isort", "pillow", "pytest"]-[[package]]-name = "pyflakes"-version = "2.4.0"-description = "passive checker of Python programs"-category = "dev"-optional = false-python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"-files = [- {file = "pyflakes-2.4.0-py2.py3-none-any.whl", hash = "sha256:3bb3a3f256f4b7968c9c788781e4ff07dce46bdf12339dcda61053375426ee2e"},- {file = "pyflakes-2.4.0.tar.gz", hash = "sha256:05a85c2872edf37a4ed30b0cce2f6093e1d0581f8c19d7393122da7e25b2b24c"},-]-[[package]]name = "pygments"version = "2.16.1"description = "Pygments is a syntax highlighting package written in Python."-category = "main"optional = falsepython-versions = ">=3.7"files = [@@ -3669,7 +3303,6 @@ plugins = ["importlib-metadata"]name = "pyjwt"version = "2.5.0"description = "JSON Web Token implementation in Python"-category = "main"optional = falsepython-versions = ">=3.7"files = [@@ -3683,88 +3316,10 @@ dev = ["coverage[toml] (==5.0.4)", "cryptography (>=3.3.1)", "pre-commit", "pytedocs = ["sphinx (>=4.5.0,<5.0.0)", "sphinx-rtd-theme", "zope.interface"]tests = ["coverage[toml] (==5.0.4)", "pytest (>=6.0.0,<7.0.0)"]-[[package]]-name = "pylint"-version = "2.17.7"-description = "python code static checker"-category = "dev"-optional = false-python-versions = ">=3.7.2"-files = [- {file = "pylint-2.17.7-py3-none-any.whl", hash = "sha256:27a8d4c7ddc8c2f8c18aa0050148f89ffc09838142193fdbe98f172781a3ff87"},- {file = "pylint-2.17.7.tar.gz", hash = "sha256:f4fcac7ae74cfe36bc8451e931d8438e4a476c20314b1101c458ad0f05191fad"},-]--[package.dependencies]-astroid = ">=2.15.8,<=2.17.0-dev0"-colorama = {version = ">=0.4.5", markers = "sys_platform == \"win32\""}-dill = {version = ">=0.2", markers = "python_version < \"3.11\""}-isort = ">=4.2.5,<6"-mccabe = ">=0.6,<0.8"-platformdirs = ">=2.2.0"-tomli = {version = ">=1.1.0", markers = "python_version < \"3.11\""}-tomlkit = ">=0.10.1"-typing-extensions = {version = ">=3.10.0", markers = "python_version < \"3.10\""}--[package.extras]-spelling = ["pyenchant (>=3.2,<4.0)"]-testutils = ["gitpython (>3)"]--[[package]]-name = "pylint-celery"-version = "0.3"-description = "pylint-celery is a Pylint plugin to aid Pylint in recognising and understandingerrors caused when using the Celery library"-category = "dev"-optional = false-python-versions = "*"-files = [- {file = "pylint-celery-0.3.tar.gz", hash = "sha256:41e32094e7408d15c044178ea828dd524beedbdbe6f83f712c5e35bde1de4beb"},-]--[package.dependencies]-astroid = ">=1.0"-pylint = ">=1.0"-pylint-plugin-utils = ">=0.2.1"--[[package]]-name = "pylint-django"-version = "2.5.5"-description = "A Pylint plugin to help Pylint understand the Django web framework"-category = "dev"-optional = false-python-versions = ">=3.7,<4.0"-files = [- {file = "pylint_django-2.5.5-py3-none-any.whl", hash = "sha256:5abd5c2228e0e5e2a4cb6d0b4fc1d1cef1e773d0be911412f4dd4fc1a1a440b7"},- {file = "pylint_django-2.5.5.tar.gz", hash = "sha256:2f339e4bf55776958283395c5139c37700c91bd5ef1d8251ef6ac88b5abbba9b"},-]--[package.dependencies]-pylint = ">=2.0,<4"-pylint-plugin-utils = ">=0.8"--[package.extras]-with-django = ["Django (>=2.2)"]--[[package]]-name = "pylint-plugin-utils"-version = "0.8.2"-description = "Utilities and helpers for writing Pylint plugins"-category = "dev"-optional = false-python-versions = ">=3.7,<4.0"-files = [- {file = "pylint_plugin_utils-0.8.2-py3-none-any.whl", hash = "sha256:ae11664737aa2effbf26f973a9e0b6779ab7106ec0adc5fe104b0907ca04e507"},- {file = "pylint_plugin_utils-0.8.2.tar.gz", hash = "sha256:d3cebf68a38ba3fba23a873809155562571386d4c1b03e5b4c4cc26c3eee93e4"},-]--[package.dependencies]-pylint = ">=1.7"-[[package]]name = "pymeta3"version = "0.5.1"description = "Pattern-matching language based on OMeta for Python 3 and 2"-category = "main"optional = falsepython-versions = "*"files = [@@ -3775,7 +3330,6 @@ files = [name = "pyphen"version = "0.14.0"description = "Pure Python module to hyphenate text"-category = "main"optional = falsepython-versions = ">=3.7"files = [@@ -3791,7 +3345,6 @@ test = ["flake8", "isort", "pytest"]name = "pytest"version = "7.4.2"description = "pytest: simple powerful testing with Python"-category = "main"optional = falsepython-versions = ">=3.7"files = [@@ -3814,7 +3367,6 @@ testing = ["argcomplete", "attrs (>=19.2.0)", "hypothesis (>=3.56)", "mock", "noname = "pytest-asyncio"version = "0.21.1"description = "Pytest support for asyncio"-category = "dev"optional = falsepython-versions = ">=3.7"files = [@@ -3833,7 +3385,6 @@ testing = ["coverage (>=6.2)", "flaky (>=3.5.0)", "hypothesis (>=5.7.1)", "mypyname = "pytest-celery"version = "0.0.0"description = "pytest-celery a shim pytest plugin to enable celery.contrib.pytest"-category = "dev"optional = falsepython-versions = "*"files = [@@ -3848,7 +3399,6 @@ celery = ">=4.4.0"name = "pytest-cov"version = "4.1.0"description = "Pytest plugin for measuring coverage."-category = "dev"optional = falsepython-versions = ">=3.7"files = [@@ -3867,7 +3417,6 @@ testing = ["fields", "hunter", "process-tests", "pytest-xdist", "six", "virtualename = "pytest-django"version = "4.5.2"description = "A Django plugin for pytest."-category = "dev"optional = falsepython-versions = ">=3.5"files = [@@ -3886,7 +3435,6 @@ testing = ["Django", "django-configurations (>=2.0)"]name = "pytest-django-queries"version = "1.2.0"description = "Generate performance reports from your django database performance tests."-category = "dev"optional = falsepython-versions = "*"files = [@@ -3909,7 +3457,6 @@ test = ["beautifulsoup4", "codecov", "coverage", "lxml", "mock", "pre-commit", "name = "pytest-memray"version = "1.5.0"description = "A simple plugin to use with pytest"-category = "main"optional = falsepython-versions = ">=3.8"files = [@@ -3930,7 +3477,6 @@ test = ["covdefaults (>=2.2.2)", "coverage (>=7.0.5)", "flaky (>=3.7)", "pytestname = "pytest-mock"version = "3.12.0"description = "Thin-wrapper around the mock package for easier use with pytest"-category = "dev"optional = falsepython-versions = ">=3.8"files = [@@ -3948,7 +3494,6 @@ dev = ["pre-commit", "pytest-asyncio", "tox"]name = "pytest-recording"version = "0.13.0"description = "A pytest plugin that allows you recording of network interactions via VCR.py"-category = "dev"optional = falsepython-versions = ">=3.7"files = [@@ -3968,7 +3513,6 @@ tests = ["pytest-httpbin", "pytest-mock", "requests", "werkzeug (==2.3.6)"]name = "pytest-socket"version = "0.6.0"description = "Pytest Plugin to disable socket calls during tests"-category = "dev"optional = falsepython-versions = ">=3.7,<4.0"files = [@@ -3983,7 +3527,6 @@ pytest = ">=3.6.3"name = "pytest-xdist"version = "3.3.1"description = "pytest xdist plugin for distributed testing, most importantly across multiple CPUs"-category = "dev"optional = falsepython-versions = ">=3.7"files = [@@ -4004,7 +3547,6 @@ testing = ["filelock"]name = "python-crontab"version = "3.0.0"description = "Python Crontab API"-category = "main"optional = falsepython-versions = "*"files = [@@ -4023,7 +3565,6 @@ cron-schedule = ["croniter"]name = "python-dateutil"version = "2.8.2"description = "Extensions to the standard Python datetime module"-category = "main"optional = falsepython-versions = "!=3.0.*,!=3.1.*,!=3.2.*,>=2.7"files = [@@ -4038,7 +3579,6 @@ six = ">=1.5"name = "python-dotenv"version = "1.0.0"description = "Read key-value pairs from a .env file and set them as environment variables"-category = "main"optional = falsepython-versions = ">=3.8"files = [@@ -4053,7 +3593,6 @@ cli = ["click (>=5.0)"]name = "python-http-client"version = "3.3.7"description = "HTTP REST client, simplified for Python"-category = "main"optional = falsepython-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"files = [@@ -4065,7 +3604,6 @@ files = [name = "python-json-logger"version = "2.0.7"description = "A python library adding a json log formatter"-category = "main"optional = falsepython-versions = ">=3.6"files = [@@ -4077,7 +3615,6 @@ files = [name = "python-lsp-jsonrpc"version = "1.0.0"description = "JSON RPC 2.0 server library"-category = "dev"optional = falsepython-versions = "*"files = [@@ -4095,7 +3632,6 @@ test = ["coverage", "pycodestyle", "pyflakes", "pylint", "pytest", "pytest-cov"]name = "python-magic"version = "0.4.27"description = "File type identification using libmagic"-category = "main"optional = falsepython-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"files = [@@ -4107,7 +3643,6 @@ files = [name = "python-magic-bin"version = "0.4.14"description = "File type identification using libmagic binary package"-category = "main"optional = falsepython-versions = "*"files = [@@ -4120,7 +3655,6 @@ files = [name = "pytimeparse"version = "1.1.8"description = "Time expression parser"-category = "main"optional = falsepython-versions = "*"files = [@@ -4132,7 +3666,6 @@ files = [name = "pytz"version = "2023.3.post1"description = "World timezone definitions, modern and historical"-category = "main"optional = falsepython-versions = "*"files = [@@ -4144,7 +3677,6 @@ files = [name = "pywatchman"version = "1.4.1"description = "Watchman client for python"-category = "dev"optional = falsepython-versions = "*"files = [@@ -4155,7 +3687,6 @@ files = [name = "pyxb"version = "1.2.5"description = "Python XML Schema Bindings"-category = "main"optional = falsepython-versions = "*"files = [@@ -4166,7 +3697,6 @@ files = [name = "pyyaml"version = "6.0.1"description = "YAML parser and emitter for Python"-category = "main"optional = falsepython-versions = ">=3.6"files = [@@ -4226,7 +3756,6 @@ files = [name = "razorpay"version = "1.4.1"description = "Razorpay Python Client"-category = "main"optional = falsepython-versions = "*"files = [@@ -4241,7 +3770,6 @@ requests = "*"name = "redis"version = "4.6.0"description = "Python client for Redis database and key-value store"-category = "main"optional = falsepython-versions = ">=3.7"files = [@@ -4260,7 +3788,6 @@ ocsp = ["cryptography (>=36.0.1)", "pyopenssl (==20.0.1)", "requests (>=2.26.0)"name = "referencing"version = "0.30.2"description = "JSON Referencing + Python"-category = "dev"optional = falsepython-versions = ">=3.8"files = [@@ -4276,7 +3803,6 @@ rpds-py = ">=0.7.0"name = "requests"version = "2.31.0"description = "Python HTTP for Humans."-category = "main"optional = falsepython-versions = ">=3.7"files = [@@ -4298,7 +3824,6 @@ use-chardet-on-py3 = ["chardet (>=3.0.2,<6)"]name = "requests-hardened"version = "1.0.0b2"description = "A library that overrides the default behaviors of the requests library, and adds new security features."-category = "main"optional = falsepython-versions = ">=3.8"files = [@@ -4315,7 +3840,6 @@ dev = ["mypy (>=1.5.1,<1.6.0)", "pytest (>=7.4.0,<7.5.0)", "trustme (>=1.1.0,<2.name = "rich"version = "13.6.0"description = "Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal"-category = "main"optional = falsepython-versions = ">=3.7.0"files = [@@ -4334,7 +3858,6 @@ jupyter = ["ipywidgets (>=7.5.1,<9)"]name = "rpds-py"version = "0.10.6"description = "Python bindings to Rust's persistent data structures (rpds)"-category = "dev"optional = falsepython-versions = ">=3.8"files = [@@ -4443,7 +3966,6 @@ files = [name = "rsa"version = "4.9"description = "Pure-Python RSA implementation"-category = "main"optional = falsepython-versions = ">=3.6,<4"files = [@@ -4458,7 +3980,6 @@ pyasn1 = ">=0.1.3"name = "ruamel-yaml"version = "0.17.40"description = "ruamel.yaml is a YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order"-category = "dev"optional = falsepython-versions = ">=3"files = [@@ -4477,47 +3998,91 @@ jinja2 = ["ruamel.yaml.jinja2 (>=0.2)"]name = "ruamel-yaml-clib"version = "0.2.8"description = "C version of reader, parser and emitter for ruamel.yaml derived from libyaml"-category = "dev"optional = falsepython-versions = ">=3.6"files = [{file = "ruamel.yaml.clib-0.2.8-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:b42169467c42b692c19cf539c38d4602069d8c1505e97b86387fcf7afb766e1d"},{file = "ruamel.yaml.clib-0.2.8-cp310-cp310-macosx_13_0_arm64.whl", hash = "sha256:07238db9cbdf8fc1e9de2489a4f68474e70dffcb32232db7c08fa61ca0c7c462"},+ {file = "ruamel.yaml.clib-0.2.8-cp310-cp310-manylinux2014_aarch64.whl", hash = "sha256:d92f81886165cb14d7b067ef37e142256f1c6a90a65cd156b063a43da1708cfd"},{file = "ruamel.yaml.clib-0.2.8-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl", hash = "sha256:fff3573c2db359f091e1589c3d7c5fc2f86f5bdb6f24252c2d8e539d4e45f412"},+ {file = "ruamel.yaml.clib-0.2.8-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:840f0c7f194986a63d2c2465ca63af8ccbbc90ab1c6001b1978f05119b5e7334"},+ {file = "ruamel.yaml.clib-0.2.8-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:024cfe1fc7c7f4e1aff4a81e718109e13409767e4f871443cbff3dba3578203d"},{file = "ruamel.yaml.clib-0.2.8-cp310-cp310-win32.whl", hash = "sha256:c69212f63169ec1cfc9bb44723bf2917cbbd8f6191a00ef3410f5a7fe300722d"},{file = "ruamel.yaml.clib-0.2.8-cp310-cp310-win_amd64.whl", hash = "sha256:cabddb8d8ead485e255fe80429f833172b4cadf99274db39abc080e068cbcc31"},{file = "ruamel.yaml.clib-0.2.8-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:bef08cd86169d9eafb3ccb0a39edb11d8e25f3dae2b28f5c52fd997521133069"},{file = "ruamel.yaml.clib-0.2.8-cp311-cp311-macosx_13_0_arm64.whl", hash = "sha256:b16420e621d26fdfa949a8b4b47ade8810c56002f5389970db4ddda51dbff248"},+ {file = "ruamel.yaml.clib-0.2.8-cp311-cp311-manylinux2014_aarch64.whl", hash = "sha256:b5edda50e5e9e15e54a6a8a0070302b00c518a9d32accc2346ad6c984aacd279"},{file = "ruamel.yaml.clib-0.2.8-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl", hash = "sha256:25c515e350e5b739842fc3228d662413ef28f295791af5e5110b543cf0b57d9b"},+ {file = "ruamel.yaml.clib-0.2.8-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:46d378daaac94f454b3a0e3d8d78cafd78a026b1d71443f4966c696b48a6d899"},+ {file = "ruamel.yaml.clib-0.2.8-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:09b055c05697b38ecacb7ac50bdab2240bfca1a0c4872b0fd309bb07dc9aa3a9"},{file = "ruamel.yaml.clib-0.2.8-cp311-cp311-win32.whl", hash = "sha256:53a300ed9cea38cf5a2a9b069058137c2ca1ce658a874b79baceb8f892f915a7"},{file = "ruamel.yaml.clib-0.2.8-cp311-cp311-win_amd64.whl", hash = "sha256:c2a72e9109ea74e511e29032f3b670835f8a59bbdc9ce692c5b4ed91ccf1eedb"},{file = "ruamel.yaml.clib-0.2.8-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:ebc06178e8821efc9692ea7544aa5644217358490145629914d8020042c24aa1"},{file = "ruamel.yaml.clib-0.2.8-cp312-cp312-macosx_13_0_arm64.whl", hash = "sha256:edaef1c1200c4b4cb914583150dcaa3bc30e592e907c01117c08b13a07255ec2"},+ {file = "ruamel.yaml.clib-0.2.8-cp312-cp312-manylinux2014_aarch64.whl", hash = "sha256:7048c338b6c86627afb27faecf418768acb6331fc24cfa56c93e8c9780f815fa"},{file = "ruamel.yaml.clib-0.2.8-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d176b57452ab5b7028ac47e7b3cf644bcfdc8cacfecf7e71759f7f51a59e5c92"},+ {file = "ruamel.yaml.clib-0.2.8-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:3213ece08ea033eb159ac52ae052a4899b56ecc124bb80020d9bbceeb50258e9"},+ {file = "ruamel.yaml.clib-0.2.8-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:aab7fd643f71d7946f2ee58cc88c9b7bfc97debd71dcc93e03e2d174628e7e2d"},+ {file = "ruamel.yaml.clib-0.2.8-cp312-cp312-win32.whl", hash = "sha256:5c365d91c88390c8d0a8545df0b5857172824b1c604e867161e6b3d59a827eaa"},+ {file = "ruamel.yaml.clib-0.2.8-cp312-cp312-win_amd64.whl", hash = "sha256:1758ce7d8e1a29d23de54a16ae867abd370f01b5a69e1a3ba75223eaa3ca1a1b"},{file = "ruamel.yaml.clib-0.2.8-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:a5aa27bad2bb83670b71683aae140a1f52b0857a2deff56ad3f6c13a017a26ed"},{file = "ruamel.yaml.clib-0.2.8-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:c58ecd827313af6864893e7af0a3bb85fd529f862b6adbefe14643947cfe2942"},{file = "ruamel.yaml.clib-0.2.8-cp37-cp37m-macosx_12_0_arm64.whl", hash = "sha256:f481f16baec5290e45aebdc2a5168ebc6d35189ae6fea7a58787613a25f6e875"},+ {file = "ruamel.yaml.clib-0.2.8-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:3fcc54cb0c8b811ff66082de1680b4b14cf8a81dce0d4fbf665c2265a81e07a1"},{file = "ruamel.yaml.clib-0.2.8-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:7f67a1ee819dc4562d444bbafb135832b0b909f81cc90f7aa00260968c9ca1b3"},+ {file = "ruamel.yaml.clib-0.2.8-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:4ecbf9c3e19f9562c7fdd462e8d18dd902a47ca046a2e64dba80699f0b6c09b7"},+ {file = "ruamel.yaml.clib-0.2.8-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:87ea5ff66d8064301a154b3933ae406b0863402a799b16e4a1d24d9fbbcbe0d3"},{file = "ruamel.yaml.clib-0.2.8-cp37-cp37m-win32.whl", hash = "sha256:75e1ed13e1f9de23c5607fe6bd1aeaae21e523b32d83bb33918245361e9cc51b"},{file = "ruamel.yaml.clib-0.2.8-cp37-cp37m-win_amd64.whl", hash = "sha256:3f215c5daf6a9d7bbed4a0a4f760f3113b10e82ff4c5c44bec20a68c8014f675"},{file = "ruamel.yaml.clib-0.2.8-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:1b617618914cb00bf5c34d4357c37aa15183fa229b24767259657746c9077615"},{file = "ruamel.yaml.clib-0.2.8-cp38-cp38-macosx_12_0_arm64.whl", hash = "sha256:a6a9ffd280b71ad062eae53ac1659ad86a17f59a0fdc7699fd9be40525153337"},+ {file = "ruamel.yaml.clib-0.2.8-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:665f58bfd29b167039f714c6998178d27ccd83984084c286110ef26b230f259f"},{file = "ruamel.yaml.clib-0.2.8-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:700e4ebb569e59e16a976857c8798aee258dceac7c7d6b50cab63e080058df91"},+ {file = "ruamel.yaml.clib-0.2.8-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:e2b4c44b60eadec492926a7270abb100ef9f72798e18743939bdbf037aab8c28"},+ {file = "ruamel.yaml.clib-0.2.8-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:e79e5db08739731b0ce4850bed599235d601701d5694c36570a99a0c5ca41a9d"},{file = "ruamel.yaml.clib-0.2.8-cp38-cp38-win32.whl", hash = "sha256:955eae71ac26c1ab35924203fda6220f84dce57d6d7884f189743e2abe3a9fbe"},{file = "ruamel.yaml.clib-0.2.8-cp38-cp38-win_amd64.whl", hash = "sha256:56f4252222c067b4ce51ae12cbac231bce32aee1d33fbfc9d17e5b8d6966c312"},{file = "ruamel.yaml.clib-0.2.8-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:03d1162b6d1df1caa3a4bd27aa51ce17c9afc2046c31b0ad60a0a96ec22f8001"},{file = "ruamel.yaml.clib-0.2.8-cp39-cp39-macosx_12_0_arm64.whl", hash = "sha256:bba64af9fa9cebe325a62fa398760f5c7206b215201b0ec825005f1b18b9bccf"},+ {file = "ruamel.yaml.clib-0.2.8-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:9eb5dee2772b0f704ca2e45b1713e4e5198c18f515b52743576d196348f374d3"},{file = "ruamel.yaml.clib-0.2.8-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:da09ad1c359a728e112d60116f626cc9f29730ff3e0e7db72b9a2dbc2e4beed5"},+ {file = "ruamel.yaml.clib-0.2.8-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:184565012b60405d93838167f425713180b949e9d8dd0bbc7b49f074407c5a8b"},+ {file = "ruamel.yaml.clib-0.2.8-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:a75879bacf2c987c003368cf14bed0ffe99e8e85acfa6c0bfffc21a090f16880"},{file = "ruamel.yaml.clib-0.2.8-cp39-cp39-win32.whl", hash = "sha256:84b554931e932c46f94ab306913ad7e11bba988104c5cff26d90d03f68258cd5"},{file = "ruamel.yaml.clib-0.2.8-cp39-cp39-win_amd64.whl", hash = "sha256:25ac8c08322002b06fa1d49d1646181f0b2c72f5cbc15a85e80b4c30a544bb15"},{file = "ruamel.yaml.clib-0.2.8.tar.gz", hash = "sha256:beb2e0404003de9a4cab9753a8805a8fe9320ee6673136ed7f04255fe60bb512"},]+[[package]]+name = "ruff"+version = "0.1.3"+description = "An extremely fast Python linter, written in Rust."+optional = false+python-versions = ">=3.7"+files = [+ {file = "ruff-0.1.3-py3-none-macosx_10_7_x86_64.whl", hash = "sha256:b46d43d51f7061652eeadb426a9e3caa1e0002470229ab2fc19de8a7b0766901"},+ {file = "ruff-0.1.3-py3-none-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl", hash = "sha256:b8afeb9abd26b4029c72adc9921b8363374f4e7edb78385ffaa80278313a15f9"},+ {file = "ruff-0.1.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ca3cf365bf32e9ba7e6db3f48a4d3e2c446cd19ebee04f05338bc3910114528b"},+ {file = "ruff-0.1.3-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:4874c165f96c14a00590dcc727a04dca0cfd110334c24b039458c06cf78a672e"},+ {file = "ruff-0.1.3-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:eec2dd31eed114e48ea42dbffc443e9b7221976554a504767ceaee3dd38edeb8"},+ {file = "ruff-0.1.3-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:dc3ec4edb3b73f21b4aa51337e16674c752f1d76a4a543af56d7d04e97769613"},+ {file = "ruff-0.1.3-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:2e3de9ed2e39160800281848ff4670e1698037ca039bda7b9274f849258d26ce"},+ {file = "ruff-0.1.3-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:1c595193881922cc0556a90f3af99b1c5681f0c552e7a2a189956141d8666fe8"},+ {file = "ruff-0.1.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0f75e670d529aa2288cd00fc0e9b9287603d95e1536d7a7e0cafe00f75e0dd9d"},+ {file = "ruff-0.1.3-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:76dd49f6cd945d82d9d4a9a6622c54a994689d8d7b22fa1322983389b4892e20"},+ {file = "ruff-0.1.3-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:918b454bc4f8874a616f0d725590277c42949431ceb303950e87fef7a7d94cb3"},+ {file = "ruff-0.1.3-py3-none-musllinux_1_2_i686.whl", hash = "sha256:d8859605e729cd5e53aa38275568dbbdb4fe882d2ea2714c5453b678dca83784"},+ {file = "ruff-0.1.3-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:0b6c55f5ef8d9dd05b230bb6ab80bc4381ecb60ae56db0330f660ea240cb0d4a"},+ {file = "ruff-0.1.3-py3-none-win32.whl", hash = "sha256:3e7afcbdcfbe3399c34e0f6370c30f6e529193c731b885316c5a09c9e4317eef"},+ {file = "ruff-0.1.3-py3-none-win_amd64.whl", hash = "sha256:7a18df6638cec4a5bd75350639b2bb2a2366e01222825562c7346674bdceb7ea"},+ {file = "ruff-0.1.3-py3-none-win_arm64.whl", hash = "sha256:12fd53696c83a194a2db7f9a46337ce06445fb9aa7d25ea6f293cf75b21aca9f"},+ {file = "ruff-0.1.3.tar.gz", hash = "sha256:3ba6145369a151401d5db79f0a47d50e470384d0d89d0d6f7fab0b589ad07c34"},+]+[[package]]name = "rx"version = "1.6.3"description = "Reactive Extensions (Rx) for Python"-category = "main"optional = falsepython-versions = "*"files = [@@ -4528,7 +4093,6 @@ files = [name = "s3transfer"version = "0.7.0"description = "An Amazon S3 Transfer Manager"-category = "main"optional = falsepython-versions = ">= 3.7"files = [@@ -4546,7 +4110,6 @@ crt = ["botocore[crt] (>=1.20.29,<2.0a.0)"]name = "semantic-version"version = "2.10.0"description = "A library implementing the 'SemVer' scheme."-category = "main"optional = falsepython-versions = ">=2.7"files = [@@ -4562,7 +4125,6 @@ doc = ["Sphinx", "sphinx-rtd-theme"]name = "semgrep"version = "1.45.0"description = "Lightweight static analysis for many languages. Find bug variants with patterns that look like source code."-category = "dev"optional = falsepython-versions = ">=3.7"files = [@@ -4600,7 +4162,6 @@ experiments = ["jsonnet (>=0.18,<1.0)"]name = "sendgrid"version = "6.10.0"description = "Twilio SendGrid library for Python"-category = "main"optional = falsepython-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"files = [@@ -4616,7 +4177,6 @@ starkbank-ecdsa = ">=2.0.1"name = "sentry-sdk"version = "1.32.0"description = "Python client for Sentry (https://sentry.io)"-category = "main"optional = falsepython-versions = "*"files = [@@ -4662,7 +4222,6 @@ tornado = ["tornado (>=5)"]name = "setuptools"version = "68.2.2"description = "Easily download, build, install, upgrade, and uninstall Python packages"-category = "dev"optional = falsepython-versions = ">=3.8"files = [@@ -4679,7 +4238,6 @@ testing-integration = ["build[virtualenv] (>=1.0.3)", "filelock (>=3.4.0)", "jarname = "singledispatch"version = "4.1.0"description = "Backport functools.singledispatch to older Pythons."-category = "dev"optional = falsepython-versions = ">=3.8"files = [@@ -4695,7 +4253,6 @@ testing = ["pytest (>=6)", "pytest-black (>=0.3.7)", "pytest-checkdocs (>=2.4)",name = "six"version = "1.16.0"description = "Python 2 and 3 compatibility utilities"-category = "main"optional = falsepython-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*"files = [@@ -4707,7 +4264,6 @@ files = [name = "sniffio"version = "1.3.0"description = "Sniff out which async library your code is running under"-category = "main"optional = falsepython-versions = ">=3.7"files = [@@ -4715,23 +4271,10 @@ files = [{file = "sniffio-1.3.0.tar.gz", hash = "sha256:e60305c5e5d314f5389259b7f22aaa33d8f7dee49763119234af3755c55b9101"},]-[[package]]-name = "snowballstemmer"-version = "2.2.0"-description = "This package provides 29 stemmers for 28 languages generated from Snowball algorithms."-category = "dev"-optional = false-python-versions = "*"-files = [- {file = "snowballstemmer-2.2.0-py2.py3-none-any.whl", hash = "sha256:c8e1716e83cc398ae16824e5572ae04e0d9fc2c6b985fb0f900f5f0c96ecba1a"},- {file = "snowballstemmer-2.2.0.tar.gz", hash = "sha256:09b16deb8547d3412ad7b590689584cd0fe25ec8db3be37788be3810cbf19cb1"},-]-[[package]]name = "sortedcontainers"version = "2.4.0"description = "Sorted Containers -- Sorted List, Sorted Dict, Sorted Set"-category = "dev"optional = falsepython-versions = "*"files = [@@ -4743,7 +4286,6 @@ files = [name = "soupsieve"version = "2.5"description = "A modern CSS selector implementation for Beautiful Soup."-category = "main"optional = falsepython-versions = ">=3.8"files = [@@ -4755,7 +4297,6 @@ files = [name = "sqlparse"version = "0.4.4"description = "A non-validating SQL parser."-category = "main"optional = falsepython-versions = ">=3.5"files = [@@ -4772,7 +4313,6 @@ test = ["pytest", "pytest-cov"]name = "starkbank-ecdsa"version = "2.2.0"description = "A lightweight and fast pure python ECDSA library"-category = "main"optional = falsepython-versions = "*"files = [@@ -4783,7 +4323,6 @@ files = [name = "stripe"version = "3.5.0"description = "Python bindings for the Stripe API"-category = "main"optional = falsepython-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"files = [@@ -4798,7 +4337,6 @@ requests = {version = ">=2.20", markers = "python_version >= \"3.0\""}name = "sympy"version = "1.12"description = "Computer algebra system (CAS) in Python"-category = "main"optional = falsepython-versions = ">=3.8"files = [@@ -4813,7 +4351,6 @@ mpmath = ">=0.19"name = "text-unidecode"version = "1.3"description = "The most basic Text::Unidecode port"-category = "main"optional = falsepython-versions = "*"files = [@@ -4825,7 +4362,6 @@ files = [name = "threadloop"version = "1.0.2"description = "Tornado IOLoop Backed Concurrent Futures"-category = "main"optional = falsepython-versions = "*"files = [@@ -4840,7 +4376,6 @@ tornado = "*"name = "thrift"version = "0.16.0"description = "Python bindings for the Apache Thrift RPC system"-category = "main"optional = falsepython-versions = "*"files = [@@ -4859,7 +4394,6 @@ twisted = ["twisted"]name = "tinycss2"version = "1.2.1"description = "A tiny CSS parser"-category = "main"optional = falsepython-versions = ">=3.7"files = [@@ -4878,7 +4412,6 @@ test = ["flake8", "isort", "pytest"]name = "tomli"version = "2.0.1"description = "A lil' TOML parser"-category = "main"optional = falsepython-versions = ">=3.7"files = [@@ -4886,23 +4419,10 @@ files = [{file = "tomli-2.0.1.tar.gz", hash = "sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f"},]-[[package]]-name = "tomlkit"-version = "0.12.1"-description = "Style preserving TOML library"-category = "dev"-optional = false-python-versions = ">=3.7"-files = [- {file = "tomlkit-0.12.1-py3-none-any.whl", hash = "sha256:712cbd236609acc6a3e2e97253dfc52d4c2082982a88f61b640ecf0817eab899"},- {file = "tomlkit-0.12.1.tar.gz", hash = "sha256:38e1ff8edb991273ec9f6181244a6a391ac30e9f5098e7535640ea6be97a7c86"},-]-[[package]]name = "tornado"version = "6.3.3"description = "Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed."-category = "main"optional = falsepython-versions = ">= 3.8"files = [@@ -4923,7 +4443,6 @@ files = [name = "types-certifi"version = "2021.10.8.3"description = "Typing stubs for certifi"-category = "dev"optional = falsepython-versions = "*"files = [@@ -4935,7 +4454,6 @@ files = [name = "types-freezegun"version = "1.1.10"description = "Typing stubs for freezegun"-category = "dev"optional = falsepython-versions = "*"files = [@@ -4947,7 +4465,6 @@ files = [name = "types-mock"version = "5.1.0.2"description = "Typing stubs for mock"-category = "dev"optional = falsepython-versions = "*"files = [@@ -4959,7 +4476,6 @@ files = [name = "types-pkg-resources"version = "0.1.3"description = "Typing stubs for pkg_resources"-category = "dev"optional = falsepython-versions = "*"files = [@@ -4971,7 +4487,6 @@ files = [name = "types-pyopenssl"version = "23.2.0.2"description = "Typing stubs for pyOpenSSL"-category = "dev"optional = falsepython-versions = "*"files = [@@ -4986,7 +4501,6 @@ cryptography = ">=35.0.0"name = "types-python-dateutil"version = "2.8.19.14"description = "Typing stubs for python-dateutil"-category = "dev"optional = falsepython-versions = "*"files = [@@ -4998,7 +4512,6 @@ files = [name = "types-pytz"version = "2023.3.1.1"description = "Typing stubs for pytz"-category = "dev"optional = falsepython-versions = "*"files = [@@ -5010,7 +4523,6 @@ files = [name = "types-pyyaml"version = "6.0.12.12"description = "Typing stubs for PyYAML"-category = "dev"optional = falsepython-versions = "*"files = [@@ -5022,7 +4534,6 @@ files = [name = "types-redis"version = "4.6.0.7"description = "Typing stubs for redis"-category = "dev"optional = falsepython-versions = "*"files = [@@ -5038,7 +4549,6 @@ types-pyOpenSSL = "*"name = "types-requests"version = "2.31.0.6"description = "Typing stubs for requests"-category = "dev"optional = falsepython-versions = ">=3.7"files = [@@ -5053,7 +4563,6 @@ types-urllib3 = "*"name = "types-six"version = "1.16.21.9"description = "Typing stubs for six"-category = "dev"optional = falsepython-versions = "*"files = [@@ -5065,7 +4574,6 @@ files = [name = "types-urllib3"version = "1.26.25.14"description = "Typing stubs for urllib3"-category = "dev"optional = falsepython-versions = "*"files = [@@ -5077,7 +4585,6 @@ files = [name = "typing-extensions"version = "4.8.0"description = "Backported and Experimental Type Hints for Python 3.8+"-category = "main"optional = falsepython-versions = ">=3.8"files = [@@ -5089,7 +4596,6 @@ files = [name = "tzdata"version = "2023.3"description = "Provider of IANA time zone data"-category = "main"optional = falsepython-versions = ">=2"files = [@@ -5101,7 +4607,6 @@ files = [name = "ujson"version = "5.8.0"description = "Ultra fast JSON encoder and decoder for Python"-category = "dev"optional = falsepython-versions = ">=3.8"files = [@@ -5172,7 +4677,6 @@ files = [name = "urllib3"version = "1.26.18"description = "HTTP library with thread-safe connection pooling, file post, and more."-category = "main"optional = falsepython-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*"files = [@@ -5189,7 +4693,6 @@ socks = ["PySocks (>=1.5.6,!=1.5.7,<2.0)"]name = "uvicorn"version = "0.23.2"description = "The lightning-fast ASGI server."-category = "main"optional = falsepython-versions = ">=3.8"files = [@@ -5205,7 +4708,7 @@ httptools = {version = ">=0.5.0", optional = true, markers = "extra == \"standarpython-dotenv = {version = ">=0.13", optional = true, markers = "extra == \"standard\""}pyyaml = {version = ">=5.1", optional = true, markers = "extra == \"standard\""}typing-extensions = {version = ">=4.0", markers = "python_version < \"3.11\""}-uvloop = {version = ">=0.14.0,<0.15.0 || >0.15.0,<0.15.1 || >0.15.1", optional = true, markers = "sys_platform != \"win32\" and sys_platform != \"cygwin\" and platform_python_implementation != \"PyPy\" and extra == \"standard\""}+uvloop = {version = ">=0.14.0,<0.15.0 || >0.15.0,<0.15.1 || >0.15.1", optional = true, markers = "(sys_platform != \"win32\" and sys_platform != \"cygwin\") and platform_python_implementation != \"PyPy\" and extra == \"standard\""}watchfiles = {version = ">=0.13", optional = true, markers = "extra == \"standard\""}websockets = {version = ">=10.4", optional = true, markers = "extra == \"standard\""}@@ -5216,7 +4719,6 @@ standard = ["colorama (>=0.4)", "httptools (>=0.5.0)", "python-dotenv (>=0.13)",name = "uvloop"version = "0.19.0"description = "Fast implementation of asyncio event loop on top of libuv"-category = "main"optional = falsepython-versions = ">=3.8.0"files = [@@ -5261,7 +4763,6 @@ test = ["Cython (>=0.29.36,<0.30.0)", "aiohttp (==3.9.0b0)", "aiohttp (>=3.8.1)"name = "vcrpy"version = "4.4.0"description = "Automatically mock your HTTP interactions to simplify and speed up testing"-category = "dev"optional = falsepython-versions = ">=3.7"files = [@@ -5280,7 +4781,6 @@ yarl = "*"name = "vine"version = "5.0.0"description = "Promises, promises, promises."-category = "main"optional = falsepython-versions = ">=3.6"files = [@@ -5292,7 +4792,6 @@ files = [name = "virtualenv"version = "20.24.6"description = "Virtual Python Environment builder"-category = "dev"optional = falsepython-versions = ">=3.7"files = [@@ -5313,7 +4812,6 @@ test = ["covdefaults (>=2.3)", "coverage (>=7.2.7)", "coverage-enable-subprocessname = "watchfiles"version = "0.21.0"description = "Simple, modern and high performance file watching and code reload in python."-category = "main"optional = falsepython-versions = ">=3.8"files = [@@ -5401,7 +4899,6 @@ anyio = ">=3.0.0"name = "wcmatch"version = "8.5"description = "Wildcard/glob file name matcher."-category = "dev"optional = falsepython-versions = ">=3.8"files = [@@ -5416,7 +4913,6 @@ bracex = ">=2.1.1"name = "wcwidth"version = "0.2.8"description = "Measures the displayed width of unicode strings in a terminal"-category = "main"optional = falsepython-versions = "*"files = [@@ -5428,7 +4924,6 @@ files = [name = "weasyprint"version = "60.1"description = "The Awesome Document Factory"-category = "main"optional = falsepython-versions = ">=3.7"files = [@@ -5454,7 +4949,6 @@ test = ["flake8", "isort", "pytest"]name = "webencodings"version = "0.5.1"description = "Character encoding aliases for legacy web content"-category = "main"optional = falsepython-versions = "*"files = [@@ -5466,7 +4960,6 @@ files = [name = "websockets"version = "12.0"description = "An implementation of the WebSocket Protocol (RFC 6455 & 7692)"-category = "main"optional = falsepython-versions = ">=3.8"files = [@@ -5548,7 +5041,6 @@ files = [name = "wrapt"version = "1.15.0"description = "Module for decorators, wrappers and monkey patching."-category = "dev"optional = falsepython-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7"files = [@@ -5633,7 +5125,6 @@ files = [name = "yarl"version = "1.9.2"description = "Yet another URL library"-category = "dev"optional = falsepython-versions = ">=3.7"files = [@@ -5721,7 +5212,6 @@ multidict = ">=4.0"name = "zipp"version = "3.17.0"description = "Backport of pathlib-compatible object wrapper for zip files"-category = "main"optional = falsepython-versions = ">=3.8"files = [@@ -5737,7 +5227,6 @@ testing = ["big-O", "jaraco.functools", "jaraco.itertools", "more-itertools", "pname = "zopfli"version = "0.2.3"description = "Zopfli module for python"-category = "main"optional = falsepython-versions = ">=3.8"files = [@@ -5809,5 +5298,5 @@ test = ["pytest"][metadata]lock-version = "2.0"- python-versions = "~3.9"-content-hash = "60b465c62b2b67fadb8da3f5658937f4ec23e3f5ab34a34efd70ae6692d3ea42"+python-versions = "~3.9"+content-hash = "25a5966648cdb366a31e954a543888e415edc45f13d1124c0038f81c136f79bf"diff --git a/pyproject.toml b/pyproject.tomlindex cd0155e19a..59c4e8536f 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -87,21 +87,17 @@ documentation = "https://docs.saleor.io/"platform = "win32"[tool.poetry.dev-dependencies]- black = "23.9.1"+ before_after = "^1.0.1"coverage = "^7.2"django-debug-toolbar = "^4.0"django-debug-toolbar-request-history = "^0"django-graphiql-debug-toolbar = "^0.2.0"django-extensions = "^3.1.2"- flake8 = "^4.0.1"- isort = "^5.12.0"+ django-stubs = "1.16.0"+ fakeredis = "^2.10"+ mypy = "1.4.1"+ mypy-extensions = "^1.0.0"pre-commit = "^3.4"- pycodestyle = "^2.5"- pydocstyle = "^6.1"- pylint = "^2.8.3"- pylint-celery = "^0"- pylint-django = "^2.4.4"- pylint-plugin-utils = "^0"pytest = "^7.0.1"pytest-asyncio = "^0.21.0"pytest-celery = "^0.0.0"@@ -112,28 +108,28 @@ documentation = "https://docs.saleor.io/"pytest-recording = "^0.13.0"pytest-socket = "^0.6.0"pytest-xdist = "^3.0.2"- mypy = "1.4.1"- mypy-extensions = "^1.0.0"pywatchman = "^1.4.1"+ ruff = "^0.1.3"+ semgrep = ">=1.34.0"+ types-certifi = "^2021.10.8"+ types-freezegun = "^1.1.7"types-mock = "^5.0.0.5"- types-redis = "^4.2.6"- types-requests = "^2.31.0"- types-pytz = "^2023.3.0"types-pkg-resources = "^0.1.3"types-python-dateutil = "^2.8.19"- django-stubs = "1.16.0"- before_after = "^1.0.1"- types-certifi = "^2021.10.8"- types-freezegun = "^1.1.7"+ types-pytz = "^2023.3.0"+ types-redis = "^4.2.6"+ types-requests = "^2.31.0"types-six = "^1.16.17"vcrpy = ">=4.0,<5.0"- fakeredis = "^2.10"- semgrep = ">=1.34.0"[tool.ruff]-extend-select = ["D", "I", "UP"]-ignore = ["D100", "D101", "D102", "D103", "D104", "D105", "D106", "D107", "D202", "D203", "D206", "D213", "D407"]+extend-select = ["D", "I", "ISC001", "ISC002", "PIE", "PT", "T20", "UP"]+ignore = ["D100", "D101", "D102", "D103", "D104", "D105", "D106", "D107", "D202", "D203", "D206", "D213", "D407", "PT019"]target-version = "py39"+ [tool.ruff.flake8-pytest-style]+ fixture-parentheses = false+ mark-parentheses = false+[tool.ruff.isort]known-first-party = ["saleor"]diff --git a/requirements.txt b/requirements.txtindex c80d4086c1..17d5c79776 100644--- a/requirements.txt+++ b/requirements.txt@@ -29,7 +29,7 @@ click-didyoumean==0.3.0 ; python_version >= "3.9" and python_version < "3.10"click-plugins==1.1.1 ; python_version >= "3.9" and python_version < "3.10"click-repl==0.3.0 ; python_version >= "3.9" and python_version < "3.10"click==8.1.7 ; python_version >= "3.9" and python_version < "3.10"-colorama==0.4.6 ; python_version >= "3.9" and python_version < "3.10" and sys_platform == "win32" or python_version >= "3.9" and python_version < "3.10" and platform_system == "Windows"+colorama==0.4.6 ; python_version >= "3.9" and python_version < "3.10" and (sys_platform == "win32" or platform_system == "Windows")cron-descriptor==1.4.0 ; python_version >= "3.9" and python_version < "3.10"cryptography==41.0.4 ; python_version >= "3.9" and python_version < "3.10"cssselect2==0.7.0 ; python_version >= "3.9" and python_version < "3.10"@@ -164,7 +164,7 @@ typing-extensions==4.8.0 ; python_version >= "3.9" and python_version < "3.10"tzdata==2023.3 ; python_version >= "3.9" and python_version < "3.10"urllib3==1.26.18 ; python_version >= "3.9" and python_version < "3.10"uvicorn[standard]==0.23.2 ; python_version >= "3.9" and python_version < "3.10"-uvloop==0.19.0 ; sys_platform != "win32" and sys_platform != "cygwin" and platform_python_implementation != "PyPy" and python_version >= "3.9" and python_version < "3.10"+uvloop==0.19.0 ; (sys_platform != "win32" and sys_platform != "cygwin") and platform_python_implementation != "PyPy" and python_version >= "3.9" and python_version < "3.10"vine==5.0.0 ; python_version >= "3.9" and python_version < "3.10"watchfiles==0.21.0 ; python_version >= "3.9" and python_version < "3.10"wcwidth==0.2.8 ; python_version >= "3.9" and python_version < "3.10"diff --git a/requirements_dev.txt b/requirements_dev.txtindex 00f5a8fb7a..df64749c9e 100644--- a/requirements_dev.txt+++ b/requirements_dev.txt@@ -3,7 +3,6 @@ amqp==5.1.1 ; python_version >= "3.9" and python_version < "3.10"aniso8601==7.0.0 ; python_version >= "3.9" and python_version < "3.10"anyio==4.0.0 ; python_version >= "3.9" and python_version < "3.10"asgiref==3.7.2 ; python_version >= "3.9" and python_version < "3.10"-astroid==2.15.8 ; python_version >= "3.9" and python_version < "3.10"async-timeout==4.0.3 ; python_version >= "3.9" and python_version < "3.10"attrs==23.1.0 ; python_version >= "3.9" and python_version < "3.10"authlib==1.2.1 ; python_version >= "3.9" and python_version < "3.10"@@ -18,7 +17,6 @@ beautifulsoup4==4.7.1 ; python_version >= "3.9" and python_version < "3.10"beautifultable==0.7.0 ; python_version >= "3.9" and python_version < "3.10"before-after==1.0.1 ; python_version >= "3.9" and python_version < "3.10"billiard==4.1.0 ; python_version >= "3.9" and python_version < "3.10"-black==23.9.1 ; python_version >= "3.9" and python_version < "3.10"boltons==21.0.0 ; python_version >= "3.9" and python_version < "3.10"boto3==1.28.69 ; python_version >= "3.9" and python_version < "3.10"botocore==1.31.69 ; python_version >= "3.9" and python_version < "3.10"@@ -45,7 +43,6 @@ cron-descriptor==1.4.0 ; python_version >= "3.9" and python_version < "3.10"cryptography==41.0.4 ; python_version >= "3.9" and python_version < "3.10"cssselect2==0.7.0 ; python_version >= "3.9" and python_version < "3.10"defusedxml==0.7.1 ; python_version >= "3.9" and python_version < "3.10"-dill==0.3.7 ; python_version >= "3.9" and python_version < "3.10"distlib==0.3.7 ; python_version >= "3.9" and python_version < "3.10"dj-database-url==2.1.0 ; python_version >= "3.9" and python_version < "3.10"dj-email-url==1.0.6 ; python_version >= "3.9" and python_version < "3.10"@@ -79,7 +76,6 @@ face==22.0.0 ; python_version >= "3.9" and python_version < "3.10"faker==19.11.0 ; python_version >= "3.9" and python_version < "3.10"fakeredis==2.20.0 ; python_version >= "3.9" and python_version < "3.10"filelock==3.12.4 ; python_version >= "3.9" and python_version < "3.10"-flake8==4.0.1 ; python_version >= "3.9" and python_version < "3.10"fonttools[woff]==4.43.1 ; python_version >= "3.9" and python_version < "3.10"freezegun==1.2.2 ; python_version >= "3.9" and python_version < "3.10"glom==22.1.0 ; python_version >= "3.9" and python_version < "3.10"@@ -112,19 +108,16 @@ idna==3.4 ; python_version >= "3.9" and python_version < "3.10"importlib-metadata==6.8.0 ; python_version >= "3.9" and python_version < "3.10"iniconfig==2.0.0 ; python_version >= "3.9" and python_version < "3.10"isodate==0.6.1 ; python_version >= "3.9" and python_version < "3.10"-isort==5.12.0 ; python_version >= "3.9" and python_version < "3.10"jaeger-client==4.8.0 ; python_version >= "3.9" and python_version < "3.10"jinja2==3.1.2 ; python_version >= "3.9" and python_version < "3.10"jmespath==1.0.1 ; python_version >= "3.9" and python_version < "3.10"jsonschema-specifications==2023.7.1 ; python_version >= "3.9" and python_version < "3.10"jsonschema==4.19.1 ; python_version >= "3.9" and python_version < "3.10"kombu==5.3.2 ; python_version >= "3.9" and python_version < "3.10"-lazy-object-proxy==1.9.0 ; python_version >= "3.9" and python_version < "3.10"lxml==4.9.3 ; python_version >= "3.9" and python_version < "3.10"markdown-it-py==3.0.0 ; python_version >= "3.9" and python_version < "3.10"markdown==3.5 ; python_version >= "3.9" and python_version < "3.10"markupsafe==2.1.3 ; python_version >= "3.9" and python_version < "3.10"-mccabe==0.6.1 ; python_version >= "3.9" and python_version < "3.10"mdurl==0.1.2 ; python_version >= "3.9" and python_version < "3.10"measurement==3.2.2 ; python_version >= "3.9" and python_version < "3.10"memray==1.10.0 ; python_version >= "3.9" and python_version < "3.10"@@ -139,7 +132,6 @@ oauthlib==3.2.2 ; python_version >= "3.9" and python_version < "3.10"openpyxl==3.1.2 ; python_version >= "3.9" and python_version < "3.10"opentracing==2.4.0 ; python_version >= "3.9" and python_version < "3.10"packaging==23.2 ; python_version >= "3.9" and python_version < "3.10"-pathspec==0.11.2 ; python_version >= "3.9" and python_version < "3.10"peewee==3.17.0 ; python_version >= "3.9" and python_version < "3.10"petl==1.7.14 ; python_version >= "3.9" and python_version < "3.10"phonenumberslite==8.13.23 ; python_version >= "3.9" and python_version < "3.10"@@ -158,17 +150,10 @@ psycopg2==2.9.9 ; python_version >= "3.9" and python_version < "3.10"pyasn1-modules==0.3.0 ; python_version >= "3.9" and python_version < "3.10"pyasn1==0.5.0 ; python_version >= "3.9" and python_version < "3.10"pybars3==0.9.7 ; python_version >= "3.9" and python_version < "3.10"-pycodestyle==2.8.0 ; python_version >= "3.9" and python_version < "3.10"pycparser==2.21 ; python_version >= "3.9" and python_version < "3.10"-pydocstyle==6.3.0 ; python_version >= "3.9" and python_version < "3.10"pydyf==0.8.0 ; python_version >= "3.9" and python_version < "3.10"-pyflakes==2.4.0 ; python_version >= "3.9" and python_version < "3.10"pygments==2.16.1 ; python_version >= "3.9" and python_version < "3.10"pyjwt==2.5.0 ; python_version >= "3.9" and python_version < "3.10"-pylint-celery==0.3 ; python_version >= "3.9" and python_version < "3.10"-pylint-django==2.5.5 ; python_version >= "3.9" and python_version < "3.10"-pylint-plugin-utils==0.8.2 ; python_version >= "3.9" and python_version < "3.10"-pylint==2.17.7 ; python_version >= "3.9" and python_version < "3.10"pymeta3==0.5.1 ; python_version >= "3.9" and python_version < "3.10"pyphen==0.14.0 ; python_version >= "3.9" and python_version < "3.10"pytest-asyncio==0.21.1 ; python_version >= "3.9" and python_version < "3.10"@@ -205,6 +190,7 @@ rpds-py==0.10.6 ; python_version >= "3.9" and python_version < "3.10"rsa==4.9 ; python_version >= "3.9" and python_version < "3.10"ruamel-yaml-clib==0.2.8 ; platform_python_implementation == "CPython" and python_version < "3.10" and python_version >= "3.9"ruamel-yaml==0.17.40 ; python_version >= "3.9" and python_version < "3.10"+ruff==0.1.3 ; python_version >= "3.9" and python_version < "3.10"rx==1.6.3 ; python_version >= "3.9" and python_version < "3.10"s3transfer==0.7.0 ; python_version >= "3.9" and python_version < "3.10"semantic-version==2.10.0 ; python_version >= "3.9" and python_version < "3.10"@@ -215,7 +201,6 @@ setuptools==68.2.2 ; python_version >= "3.9" and python_version < "3.10"singledispatch==4.1.0 ; python_version >= "3.9" and python_version < "3.10"six==1.16.0 ; python_version >= "3.9" and python_version < "3.10"sniffio==1.3.0 ; python_version >= "3.9" and python_version < "3.10"-snowballstemmer==2.2.0 ; python_version >= "3.9" and python_version < "3.10"sortedcontainers==2.4.0 ; python_version >= "3.9" and python_version < "3.10"soupsieve==2.5 ; python_version >= "3.9" and python_version < "3.10"sqlparse==0.4.4 ; python_version >= "3.9" and python_version < "3.10"@@ -227,7 +212,6 @@ threadloop==1.0.2 ; python_version >= "3.9" and python_version < "3.10"thrift==0.16.0 ; python_version >= "3.9" and python_version < "3.10"tinycss2==1.2.1 ; python_version >= "3.9" and python_version < "3.10"tomli==2.0.1 ; python_version >= "3.9" and python_version < "3.10"-tomlkit==0.12.1 ; python_version >= "3.9" and python_version < "3.10"tornado==6.3.3 ; python_version >= "3.9" and python_version < "3.10"types-certifi==2021.10.8.3 ; python_version >= "3.9" and python_version < "3.10"types-freezegun==1.1.10 ; python_version >= "3.9" and python_version < "3.10"@@ -246,7 +230,7 @@ tzdata==2023.3 ; python_version >= "3.9" and python_version < "3.10"ujson==5.8.0 ; python_version >= "3.9" and python_version < "3.10"urllib3==1.26.18 ; python_version >= "3.9" and python_version < "3.10"uvicorn[standard]==0.23.2 ; python_version >= "3.9" and python_version < "3.10"-uvloop==0.19.0 ; sys_platform != "win32" and sys_platform != "cygwin" and platform_python_implementation != "PyPy" and python_version >= "3.9" and python_version < "3.10"+uvloop==0.19.0 ; (sys_platform != "win32" and sys_platform != "cygwin") and platform_python_implementation != "PyPy" and python_version >= "3.9" and python_version < "3.10"vcrpy==4.4.0 ; python_version >= "3.9" and python_version < "3.10"vine==5.0.0 ; python_version >= "3.9" and python_version < "3.10"virtualenv==20.24.6 ; python_version >= "3.9" and python_version < "3.10"diff --git a/saleor/account/tests/test_account.py b/saleor/account/tests/test_account.pyindex 635330588c..06d57bdbf8 100644--- a/saleor/account/tests/test_account.py+++ b/saleor/account/tests/test_account.py@@ -60,12 +60,12 @@ def test_address_form_postal_code_validation():@pytest.mark.parametrize(- "country, phone, is_valid",- (+ ("country", "phone", "is_valid"),+ [("US", "123-456-7890", False),("US", "(541) 754-3010", True),("FR", "0600000000", True),- ),+ ],)def test_address_form_phone_number_validation(country, phone, is_valid):data = {"country": country, "phone": phone}@@ -78,7 +78,7 @@ def test_address_form_phone_number_validation(country, phone, is_valid):@pytest.mark.parametrize(- "form_data, form_valid, expected_country",+ ("form_data", "form_valid", "expected_country"),[({}, False, "PL"),(@@ -130,8 +130,8 @@ def test_country_aware_form_has_only_supported_countries():@pytest.mark.parametrize(- "input_data, is_valid",- (+ ("input_data", "is_valid"),+ [({"phone": "123"}, False),({"phone": "+48123456789"}, True),({"phone": "+12025550169"}, True),@@ -148,7 +148,7 @@ def test_country_aware_form_has_only_supported_countries():({"country": "US", "phone": "1-541-754-3010"}, True),({"country": "FR", "phone": "1234567890"}, False),({"country": "FR", "phone": "0600000000"}, True),- ),+ ],)def test_validate_possible_number(input_data, is_valid):if not is_valid:@@ -203,7 +203,7 @@ def test_compare_addresses_different_country(address):@pytest.mark.parametrize(- "email, first_name, last_name, full_name",+ ("email", "first_name", "last_name", "full_name"),[("[email protected]", "John", "Doe", "John Doe"),("[email protected]", "John", "", "John"),@@ -219,7 +219,7 @@ def test_get_full_name_user_with_names(@pytest.mark.parametrize(- "email, first_name, last_name, full_name",+ ("email", "first_name", "last_name", "full_name"),[("[email protected]", "John", "Doe", "John Doe"),("[email protected]", "John", "", "John"),@@ -237,7 +237,7 @@ def test_get_full_name_user_with_address(@pytest.mark.parametrize(- "email, first_name, last_name, full_name",+ ("email", "first_name", "last_name", "full_name"),[("[email protected]", "John", "Doe", "John Doe"),("[email protected]", "John", "", "John"),diff --git a/saleor/account/tests/test_utils.py b/saleor/account/tests/test_utils.pyindex 5f7d81bbaf..c43ab20bff 100644--- a/saleor/account/tests/test_utils.py+++ b/saleor/account/tests/test_utils.py@@ -192,7 +192,7 @@ def users_with_similar_emails():@pytest.mark.parametrize(- "email,expected_user",+ ("email", "expected_user"),[("[email protected]", 0),("[email protected]", 1),diff --git a/saleor/app/tests/test_app_commands.py b/saleor/app/tests/test_app_commands.pyindex 89eb868ea3..711a3b32ed 100644--- a/saleor/app/tests/test_app_commands.py+++ b/saleor/app/tests/test_app_commands.py@@ -2,6 +2,7 @@ from unittest.mock import ANY, Mock, callimport pytestfrom django.core.management import call_command+from django.forms import ValidationErrorfrom requests_hardened import HTTPSessionfrom ... import schema_version@@ -95,7 +96,7 @@ def test_creates_app_from_manifest_sends_token(monkeypatch, app_manifest):def test_creates_app_from_manifest_installation_failed():manifest_url = "http://localhost:3000/manifest-wrong"- with pytest.raises(Exception):+ with pytest.raises(ValidationError, match="Incorrect format."):call_command("install_app", manifest_url)app_job = AppInstallation.objects.get()diff --git a/saleor/app/tests/test_installation_utils.py b/saleor/app/tests/test_installation_utils.pyindex 27c9f12187..3835faaf6a 100644--- a/saleor/app/tests/test_installation_utils.py+++ b/saleor/app/tests/test_installation_utils.py@@ -41,7 +41,7 @@ def test_validate_app_install_response():assert str(error.value) == error_message[email protected]("json_response", ({}, {"error": {}}, Exception))[email protected]("json_response", [{}, {"error": {}}, Exception])def test_validate_app_install_response_when_wrong_error_message(json_response):response = Mock(spec=requests.Response)response.raise_for_status.side_effect = requests.HTTPError@@ -307,7 +307,7 @@ def test_install_app_with_extension(@pytest.mark.parametrize(- "app_permissions, extension_permissions",+ ("app_permissions", "extension_permissions"),[([], ["MANAGE_PRODUCTS"]),(["MANAGE_PRODUCTS"], ["MANAGE_PRODUCTS", "MANAGE_APPS"]),@@ -501,7 +501,7 @@ def test_install_app_webhook_incorrect_url(assert error_dict["webhooks"][0].message == "Invalid target url."[email protected]("is_active", (True, False))[email protected]("is_active", [True, False])def test_install_app_with_webhook_is_active(is_active, app_manifest, app_manifest_webhook, app_installation, monkeypatch):diff --git a/saleor/app/tests/test_validators.py b/saleor/app/tests/test_validators.pyindex ce4ad7f58b..96d1d2b992 100644--- a/saleor/app/tests/test_validators.py+++ b/saleor/app/tests/test_validators.py@@ -30,7 +30,7 @@ def test_parse_version():@pytest.mark.parametrize(- "required_version,version,satisfied",+ ("required_version", "version", "satisfied"),[("*", "3.12.1", True),("3.8 - 3.9 || ~3.10.2 || 3.11.* || 3.12.x", "3.12.1", True),@@ -64,7 +64,9 @@ def test_clean_required_saleor_version_raise_for_saleor_version():assert error.value.code == AppErrorCode.UNSUPPORTED_SALEOR_VERSION.value[email protected]("author,cleaned", [(None, None), (" Acme Ltd ", "Acme Ltd")])+ ("author", "cleaned"), [(None, None), (" Acme Ltd ", "Acme Ltd")]+)def test_clean_author(author, cleaned):assert clean_author(author) == cleaneddiff --git a/saleor/asgi/tests/test_cors.py b/saleor/asgi/tests/test_cors.pyindex b04437b1a9..1993da076d 100644--- a/saleor/asgi/tests/test_cors.py+++ b/saleor/asgi/tests/test_cors.py@@ -96,7 +96,7 @@ async def test_access_control_header_simple(asgi_app: ASGI3Application, settings@pytest.mark.parametrize(- "allowed_origins,origin",+ ("allowed_origins", "origin"),[(["*"], "http://example.org"),(["*"], "https://example.org"),@@ -123,7 +123,7 @@ async def test_access_control_allowed_origins(@pytest.mark.parametrize(- "allowed_origins,origin",+ ("allowed_origins", "origin"),[(["http://example.org"], "https://example.org"),(["http://example.org"], "http://localhost:3000"),diff --git a/saleor/checkout/tests/test_cart.py b/saleor/checkout/tests/test_cart.pyindex e238799ba1..4f45d85a73 100644--- a/saleor/checkout/tests/test_cart.py+++ b/saleor/checkout/tests/test_cart.py@@ -13,7 +13,7 @@ from ..models import Checkoutfrom ..utils import add_variant_to_checkout, calculate_checkout_quantitydef anonymous_checkout(db, channel_USD):return Checkout.objects.get_or_create(user=None, channel=channel_USD)[0]@@ -70,7 +70,7 @@ def test_replacing_same_variant(checkout, product):def test_adding_invalid_quantity(checkout, product):variant = product.variants.get()checkout_info = fetch_checkout_info(checkout, [], get_plugins_manager())- with pytest.raises(ValueError):+ with pytest.raises(ValueError, match="-1 is not a valid quantity"):add_variant_to_checkout(checkout_info, variant, -1)diff --git a/saleor/checkout/tests/test_checkout.py b/saleor/checkout/tests/test_checkout.pyindex 3f8a2717ec..bcfe209562 100644--- a/saleor/checkout/tests/test_checkout.py+++ b/saleor/checkout/tests/test_checkout.py@@ -265,8 +265,15 @@ def test_last_change_update_foreign_key(checkout, shipping_method):@pytest.mark.parametrize(- "total, min_spent_amount, min_checkout_items_quantity, once_per_order, "- "discount_value, discount_value_type, expected_value",+ (+ "total",+ "min_spent_amount",+ "min_checkout_items_quantity",+ "once_per_order",+ "discount_value",+ "discount_value_type",+ "expected_value",+ ),[(20, 20, 2, False, 50, DiscountValueType.PERCENTAGE, Decimal("10.00")),(20, None, None, False, 50, DiscountValueType.PERCENTAGE, Decimal("10.00")),@@ -351,8 +358,15 @@ def test_get_discount_for_checkout_value_entire_order_voucher(@pytest.mark.parametrize(- "prices, min_spent_amount, min_checkout_items_quantity, once_per_order, "- "discount_value, discount_value_type, expected_value",+ (+ "prices",+ "min_spent_amount",+ "min_checkout_items_quantity",+ "once_per_order",+ "discount_value",+ "discount_value_type",+ "expected_value",+ ),[([Money(10, "USD"), Money(20, "USD")],@@ -538,8 +552,14 @@ def test_get_voucher_discount_for_checkout_voucher_validation(@pytest.mark.parametrize(- "total, total_quantity, discount_value, discount_type, min_spent_amount, "- "min_checkout_items_quantity",+ (+ "total",+ "total_quantity",+ "discount_value",+ "discount_type",+ "min_spent_amount",+ "min_checkout_items_quantity",+ ),[("99", 9, 10, DiscountValueType.FIXED, None, 10),("99", 9, 10, DiscountValueType.FIXED, 100, None),@@ -593,7 +613,7 @@ def test_get_discount_for_checkout_entire_order_voucher_not_applicable(@pytest.mark.parametrize(- "discount_value, discount_type, total_discount_amount",+ ("discount_value", "discount_type", "total_discount_amount"),[(5, DiscountValueType.FIXED, Decimal("15.00")),(10, DiscountValueType.PERCENTAGE, Decimal("6.00")),@@ -647,7 +667,7 @@ def test_get_discount_for_checkout_specific_products_voucher(@pytest.mark.parametrize(- "discount_value, discount_type, total_discount_amount",+ ("discount_value", "discount_type", "total_discount_amount"),[(5, DiscountValueType.FIXED, 5),(10000, DiscountValueType.FIXED, 10),@@ -702,8 +722,14 @@ def test_get_discount_for_checkout_specific_products_voucher_apply_only_once(@pytest.mark.parametrize(- "total, total_quantity, discount_value, discount_type, min_spent_amount,"- "min_checkout_items_quantity",+ (+ "total",+ "total_quantity",+ "discount_value",+ "discount_type",+ "min_spent_amount",+ "min_checkout_items_quantity",+ ),[("99", 9, 10, DiscountValueType.FIXED, None, 10),("99", 9, 10, DiscountValueType.FIXED, 100, None),@@ -765,8 +791,14 @@ def test_get_discount_for_checkout_specific_products_voucher_not_applicable(@pytest.mark.parametrize(- "shipping_cost, shipping_country_code, discount_value, discount_type,"- "countries, expected_value",+ (+ "shipping_cost",+ "shipping_country_code",+ "discount_value",+ "discount_type",+ "countries",+ "expected_value",+ ),[(Decimal("10.00"),@@ -800,14 +832,6 @@ def test_get_discount_for_checkout_specific_products_voucher_not_applicable(["PL"],Decimal("5.00"),),- (- Decimal("5.00"),- "PL",- Decimal("5.00"),- DiscountValueType.FIXED,- ["PL"],- Decimal("5.00"),- ),],)def test_get_discount_for_checkout_shipping_voucher(@@ -979,9 +1003,18 @@ def test_get_discount_for_checkout_shipping_voucher_limited_countries(@pytest.mark.parametrize(- "is_shipping_required, shipping_method_data, discount_value, discount_type,"- "countries, min_spent_amount, min_checkout_items_quantity, subtotal,"- "total_quantity, error_msg",+ (+ "is_shipping_required",+ "shipping_method_data",+ "discount_value",+ "discount_type",+ "countries",+ "min_spent_amount",+ "min_checkout_items_quantity",+ "subtotal",+ "total_quantity",+ "error_msg",+ ),[(True,diff --git a/saleor/checkout/tests/test_checkout_complete.py b/saleor/checkout/tests/test_checkout_complete.pyindex c60c251c95..a17494b84d 100644--- a/saleor/checkout/tests/test_checkout_complete.py+++ b/saleor/checkout/tests/test_checkout_complete.py@@ -616,7 +616,7 @@ def test_create_order_doesnt_duplicate_order(assert order_1.pk == order_2.pk[email protected]("is_anonymous_user", (True, False))[email protected]("is_anonymous_user", [True, False])def test_create_order_with_gift_card(checkout_with_gift_card, customer_user, shipping_method, is_anonymous_user):@@ -796,7 +796,7 @@ def test_create_order_with_many_gift_cards(@mock.patch("saleor.giftcard.utils.send_gift_card_notification")[email protected]("is_anonymous_user", (True, False))[email protected]("is_anonymous_user", [True, False])def test_create_order_gift_card_bought(send_notification_mock,checkout_with_gift_card_items,@@ -892,7 +892,7 @@ def test_create_order_gift_card_bought(@mock.patch("saleor.giftcard.utils.send_gift_card_notification")[email protected]("is_anonymous_user", (True, False))[email protected]("is_anonymous_user", [True, False])def test_create_order_gift_card_bought_order_not_captured_gift_cards_not_sent(send_notification_mock,checkout_with_gift_card_items,@@ -954,7 +954,7 @@ def test_create_order_gift_card_bought_order_not_captured_gift_cards_not_sent(@mock.patch("saleor.giftcard.utils.send_gift_card_notification")[email protected]("is_anonymous_user", (True, False))[email protected]("is_anonymous_user", [True, False])def test_create_order_gift_card_bought_only_shippable_gift_card(send_notification_mock,checkout,@@ -1013,7 +1013,7 @@ def test_create_order_gift_card_bought_only_shippable_gift_card(send_notification_mock.assert_not_called()[email protected]("is_anonymous_user", (True, False))[email protected]("is_anonymous_user", [True, False])def test_create_order_gift_card_bought_do_not_fulfill_gift_cards_automatically(site_settings,checkout_with_gift_card_items,@@ -1858,7 +1858,7 @@ def test_complete_checkout_invalid_shipping_method(# whenwith pytest.raises(ValidationError):- order, action_required, _ = complete_checkout(+ complete_checkout(checkout_info=checkout_info,lines=lines,manager=manager,@@ -1868,13 +1868,11 @@ def test_complete_checkout_invalid_shipping_method(app=app,)- # then- voucher_customer = VoucherCustomer.objects.filter(- voucher=voucher, customer_email=customer_user.email- )- assert not order- assert action_required is True- assert not voucher_customer.exists()+ # then+ voucher_customer = VoucherCustomer.objects.filter(+ voucher=voucher, customer_email=customer_user.email+ )+ assert not voucher_customer.exists()mocked_payment_refund_or_void.called_once_with(payment, manager, channel_slug=checkout.channel.slugdiff --git a/saleor/checkout/tests/test_order_from_checkout.py b/saleor/checkout/tests/test_order_from_checkout.pyindex 0cc00316c1..e890e27721 100644--- a/saleor/checkout/tests/test_order_from_checkout.py+++ b/saleor/checkout/tests/test_order_from_checkout.py@@ -46,7 +46,7 @@ def test_create_order_insufficient_stock()[email protected]("is_anonymous_user", (True, False))[email protected]("is_anonymous_user", [True, False])def test_create_order_with_gift_card(checkout_with_gift_card, customer_user, shipping_method, is_anonymous_user, app):@@ -280,7 +280,7 @@ def test_create_order_with_many_gift_cards(@mock.patch("saleor.giftcard.utils.send_gift_card_notification")[email protected]("is_anonymous_user", (True, False))[email protected]("is_anonymous_user", [True, False])def test_create_order_gift_card_bought(send_notification_mock,checkout_with_gift_card_items,@@ -360,7 +360,7 @@ def test_create_order_gift_card_bought(@mock.patch("saleor.giftcard.utils.send_gift_card_notification")[email protected]("is_anonymous_user", (True, False))[email protected]("is_anonymous_user", [True, False])def test_create_order_gift_card_bought_only_shippable_gift_card(send_notification_mock,checkout,@@ -413,7 +413,7 @@ def test_create_order_gift_card_bought_only_shippable_gift_card(send_notification_mock.assert_not_called()[email protected]("is_anonymous_user", (True, False))[email protected]("is_anonymous_user", [True, False])def test_create_order_gift_card_bought_do_not_fulfill_gift_cards_automatically(site_settings,checkout_with_gift_card_items,diff --git a/saleor/core/tests/test_auth_backend_default_header.py b/saleor/core/tests/test_auth_backend_default_header.pyindex da0f96bbd3..35d23f5c9b 100644--- a/saleor/core/tests/test_auth_backend_default_header.py+++ b/saleor/core/tests/test_auth_backend_default_header.py@@ -170,7 +170,7 @@ def test_user_doesnt_have_permissions_from_token(prefix, staff_user, app, rf):@pytest.mark.parametrize(- "user_permissions, app_permissions, expected_limited_permissions",+ ("user_permissions", "app_permissions", "expected_limited_permissions"),[(["manage_apps", "manage_checkouts"],diff --git a/saleor/core/tests/test_auth_backend_saleor_header.py b/saleor/core/tests/test_auth_backend_saleor_header.pyindex 8bbed14c03..4b2213e70c 100644--- a/saleor/core/tests/test_auth_backend_saleor_header.py+++ b/saleor/core/tests/test_auth_backend_saleor_header.py@@ -162,7 +162,7 @@ def test_user_doesnt_have_permissions_from_token(staff_user, app, rf):@pytest.mark.parametrize(- "user_permissions, app_permissions, expected_limited_permissions",+ ("user_permissions", "app_permissions", "expected_limited_permissions"),[(["manage_apps", "manage_checkouts"],diff --git a/saleor/core/tests/test_core.py b/saleor/core/tests/test_core.pyindex 486f18fd70..e38633578a 100644--- a/saleor/core/tests/test_core.py+++ b/saleor/core/tests/test_core.py@@ -50,7 +50,7 @@ type_schema = {@pytest.mark.parametrize(- "ip_address, expected_ip",+ ("ip_address", "expected_ip"),[("83.0.0.1", "83.0.0.1"),("::1", "::1"),@@ -271,7 +271,7 @@ def test_is_ssl_enabled(enable_ssl, settings):@pytest.mark.parametrize(- "public_url, expected",+ ("public_url", "expected"),[("https://api.example.com", True), ("http://api.example.com", False)],)@pytest.mark.parametrize("enable_ssl", [True, False])@@ -301,7 +301,7 @@ def test_delete_sort_order_with_null_value(menu_item):@pytest.mark.parametrize(- "product_name, slug_result",+ ("product_name", "slug_result"),[("Paint", "paint"),("paint", "paint-3"),@@ -348,11 +348,6 @@ def test_generate_unique_slug_for_slug_with_max_characters_number(category):category.save()-def test_generate_unique_slug_non_slugable_value_and_slugable_field(category):- with pytest.raises(Exception):- generate_unique_slug(category)--def test_generate_unique_slug_with_additional_lookup_slug_not_changed(color_attribute, attribute_without_values):diff --git a/saleor/core/tests/test_postgresql_search.py b/saleor/core/tests/test_postgresql_search.pyindex 838071eaee..e5ef8f2afd 100644--- a/saleor/core/tests/test_postgresql_search.py+++ b/saleor/core/tests/test_postgresql_search.py@@ -49,7 +49,7 @@ def execute_search(phrase):@pytest.mark.parametrize(- "phrase,product_num",+ ("phrase", "product_num"),[("Arabica", 0), ("chicken", 2), ("blue", 1), ("roast", 2), ("cool", 1)],)@pytest.mark.integration@@ -109,7 +109,7 @@ def test_flat_concat_drop_exceeding_count_no_silently_fail():concat = LimitedFlatConcat(Value("1"), Value("2"))assert concat.source_expressions == [Value("1"), Value("2")]- with pytest.raises(ValueError) as error:+ with pytest.raises(ValueError, match="Maximum expression count exceeded") as error:LimitedFlatConcat(Value("1"), Value("2"), Value("3"))assert error.value.args == ("Maximum expression count exceeded",)diff --git a/saleor/core/tests/test_weight.py b/saleor/core/tests/test_weight.pyindex 772872ce27..c9aa81a4e1 100644--- a/saleor/core/tests/test_weight.py+++ b/saleor/core/tests/test_weight.py@@ -30,7 +30,7 @@ def test_get_default_weight_unit(site_settings):@pytest.mark.parametrize(- "default_weight_unit, expected_value",+ ("default_weight_unit", "expected_value"),[(WeightUnits.KG, Weight(kg=1)),(WeightUnits.G, Weight(g=1000)),diff --git a/saleor/csv/tests/export/products_data/test_get_products_data.py b/saleor/csv/tests/export/products_data/test_get_products_data.pyindex 4304e5d003..80128dcccf 100644--- a/saleor/csv/tests/export/products_data/test_get_products_data.py+++ b/saleor/csv/tests/export/products_data/test_get_products_data.py@@ -382,7 +382,7 @@ def test_get_products_data_for_specified_warehouses_channels_and_attributes(variant_variant_ref_value = AttributeValue.objects.create(attribute=product_type_variant_reference_attribute,reference_variant=variant,- slug=(f"{variant_with_many_stocks.pk}" f"_{variant.pk}"),+ slug=(f"{variant_with_many_stocks.pk}_{variant.pk}"),name=variant.name,)product_variant_ref_value = AttributeValue.objects.create(diff --git a/saleor/discount/migrations/0053_drop_sales_indexes.py b/saleor/discount/migrations/0053_drop_sales_indexes.pyindex 8c91cfc478..9f9de980a8 100644--- a/saleor/discount/migrations/0053_drop_sales_indexes.py+++ b/saleor/discount/migrations/0053_drop_sales_indexes.py@@ -9,7 +9,7 @@ class Migration(migrations.Migration):operations = [migrations.RunSQL(- "DROP INDEX CONCURRENTLY " '"discount_sale_collections_sale_id_a912da4a";',+ 'DROP INDEX CONCURRENTLY "discount_sale_collections_sale_id_a912da4a";',reverse_sql=migrations.RunSQL.noop,),migrations.RunSQL(@@ -18,11 +18,11 @@ class Migration(migrations.Migration):reverse_sql=migrations.RunSQL.noop,),migrations.RunSQL(- "DROP INDEX CONCURRENTLY " '"discount_saletranslation_sale_id_36a69b0a";',+ 'DROP INDEX CONCURRENTLY "discount_saletranslation_sale_id_36a69b0a";',reverse_sql=migrations.RunSQL.noop,),migrations.RunSQL(- "DROP INDEX CONCURRENTLY " '"discount_sale_categories_sale_id_2aeee4a7";',+ 'DROP INDEX CONCURRENTLY "discount_sale_categories_sale_id_2aeee4a7";',reverse_sql=migrations.RunSQL.noop,),migrations.RunSQL(@@ -31,19 +31,19 @@ class Migration(migrations.Migration):reverse_sql=migrations.RunSQL.noop,),migrations.RunSQL(- "DROP INDEX CONCURRENTLY " '"discount_sale_products_sale_id_10e3a20f";',+ 'DROP INDEX CONCURRENTLY "discount_sale_products_sale_id_10e3a20f";',reverse_sql=migrations.RunSQL.noop,),migrations.RunSQL(- "DROP INDEX CONCURRENTLY " '"discount_sale_products_product_id_d42c9636";',+ 'DROP INDEX CONCURRENTLY "discount_sale_products_product_id_d42c9636";',reverse_sql=migrations.RunSQL.noop,),migrations.RunSQL(- "DROP INDEX CONCURRENTLY " '"discount_sale_created_c17254d6";',+ 'DROP INDEX CONCURRENTLY "discount_sale_created_c17254d6";',reverse_sql=migrations.RunSQL.noop,),migrations.RunSQL(- "DROP INDEX CONCURRENTLY " '"discount_sale_updated_at_1fb1171b";',+ 'DROP INDEX CONCURRENTLY "discount_sale_updated_at_1fb1171b";',reverse_sql=migrations.RunSQL.noop,),migrations.RunSQL(@@ -52,12 +52,11 @@ class Migration(migrations.Migration):reverse_sql=migrations.RunSQL.noop,),migrations.RunSQL(- "DROP INDEX CONCURRENTLY "- '"discount_salechannellisting_sale_id_13a35e18";',+ 'DROP INDEX CONCURRENTLY "discount_salechannellisting_sale_id_13a35e18";',reverse_sql=migrations.RunSQL.noop,),migrations.RunSQL(- "DROP INDEX CONCURRENTLY " '"discount_sale_variants_sale_id_50fc4c3a";',+ 'DROP INDEX CONCURRENTLY "discount_sale_variants_sale_id_50fc4c3a";',reverse_sql=migrations.RunSQL.noop,),migrations.RunSQL(@@ -71,11 +70,11 @@ class Migration(migrations.Migration):reverse_sql=migrations.RunSQL.noop,),migrations.RunSQL(- "DROP INDEX CONCURRENTLY " '"discount_orderlinediscount_sale_id_d95994f8";',+ 'DROP INDEX CONCURRENTLY "discount_orderlinediscount_sale_id_d95994f8";',reverse_sql=migrations.RunSQL.noop,),migrations.RunSQL(- "DROP INDEX CONCURRENTLY " '"discount_orderdiscount_sale_id_849ebbef";',+ 'DROP INDEX CONCURRENTLY "discount_orderdiscount_sale_id_849ebbef";',reverse_sql=migrations.RunSQL.noop,),]diff --git a/saleor/discount/tests/test_discounts.py b/saleor/discount/tests/test_discounts.pyindex c0ad76f14d..ed2ecc09e4 100644--- a/saleor/discount/tests/test_discounts.py+++ b/saleor/discount/tests/test_discounts.py@@ -299,8 +299,13 @@ def test_remove_voucher_usage_by_customer_not_exists(voucher):@pytest.mark.parametrize(- "total, min_spent_amount, total_quantity, min_checkout_items_quantity,"- "discount_value_type",+ (+ "total",+ "min_spent_amount",+ "total_quantity",+ "min_checkout_items_quantity",+ "discount_value_type",+ ),[(20, 20, 2, 2, DiscountValueType.PERCENTAGE),(20, None, 2, None, DiscountValueType.PERCENTAGE),@@ -393,8 +398,14 @@ def test_validate_staff_voucher_for_staff_customer(channel_USD, staff_user):@pytest.mark.parametrize(- "total, min_spent_amount, total_quantity, min_checkout_items_quantity, "- "discount_value, discount_value_type",+ (+ "total",+ "min_spent_amount",+ "total_quantity",+ "min_checkout_items_quantity",+ "discount_value",+ "discount_value_type",+ ),[(20, 50, 2, 10, 50, DiscountValueType.PERCENTAGE),(20, 50, 2, None, 50, DiscountValueType.PERCENTAGE),diff --git a/saleor/discount/tests/test_rounding_issue.py b/saleor/discount/tests/test_rounding_issue.pyindex c74c1749ab..3b0d0ad3a7 100644--- a/saleor/discount/tests/test_rounding_issue.py+++ b/saleor/discount/tests/test_rounding_issue.py@@ -37,7 +37,7 @@ def promotion_10_percentage(channel_USD, product_list, product):@pytest.mark.parametrize(- "variant_prices, expected_discounts",+ ("variant_prices", "expected_discounts"),[([Decimal("1.06"), Decimal("2.06"), Decimal("3.06"), Decimal("4.06")],diff --git a/saleor/giftcard/tests/test_utils.py b/saleor/giftcard/tests/test_utils.pyindex fd7b76c620..746083a4d7 100644--- a/saleor/giftcard/tests/test_utils.py+++ b/saleor/giftcard/tests/test_utils.py@@ -148,7 +148,8 @@ def test_remove_gift_card_code_from_checkout_no_checkout_gift_cards(@pytest.mark.parametrize(- "period_type, period", [("years", 5), ("weeks", 1), ("months", 13), ("days", 100)]+ ("period_type", "period"),+ [("years", 5), ("weeks", 1), ("months", 13), ("days", 100)],)def test_calculate_expiry_settings(period_type, period, site_settings):# givendiff --git a/saleor/graphql/account/tests/bulk_mutations/test_customer_bulk_update.py b/saleor/graphql/account/tests/bulk_mutations/test_customer_bulk_update.pyindex 826d94eca4..7dcad99e75 100644--- a/saleor/graphql/account/tests/bulk_mutations/test_customer_bulk_update.py+++ b/saleor/graphql/account/tests/bulk_mutations/test_customer_bulk_update.py@@ -423,7 +423,7 @@ def test_customers_bulk_update_when_no_id_or_external_ref_provided(assert data["results"][0]["errors"]error = data["results"][0]["errors"][0]assert error["message"] == (- "At least one of arguments is required: 'id', " "'externalReference'."+ "At least one of arguments is required: 'id', 'externalReference'.")diff --git a/saleor/graphql/account/tests/queries/test_customers.py b/saleor/graphql/account/tests/queries/test_customers.pyindex 136a5aa884..245118c272 100644--- a/saleor/graphql/account/tests/queries/test_customers.py+++ b/saleor/graphql/account/tests/queries/test_customers.py@@ -59,7 +59,7 @@ def customers_for_pagination(db):@pytest.mark.parametrize(- "customer_sort, result_order",+ ("customer_sort", "result_order"),[({"field": "FIRST_NAME", "direction": "ASC"}, ["Joe", "John", "Leslie"]),({"field": "FIRST_NAME", "direction": "DESC"}, ["Leslie", "John", "Joe"]),diff --git a/saleor/graphql/account/tests/queries/test_customers_filtering.py b/saleor/graphql/account/tests/queries/test_customers_filtering.pyindex fa7f3d02bd..8120b362c9 100644--- a/saleor/graphql/account/tests/queries/test_customers_filtering.py+++ b/saleor/graphql/account/tests/queries/test_customers_filtering.py@@ -28,7 +28,7 @@ def query_customer_with_filter():@pytest.mark.parametrize(- "customer_filter, count",+ ("customer_filter", "count"),[({"search": "mirumee.com"}, 2),({"search": "Alice"}, 1),@@ -189,7 +189,7 @@ def test_query_customers_with_filter_by_not_existing_id(@pytest.mark.parametrize(- "customer_filter, count",+ ("customer_filter", "count"),[({"placedOrders": {"gte": "2019-04-18"}}, 1),({"placedOrders": {"lte": "2012-01-14"}}, 1),@@ -221,7 +221,7 @@ def test_query_customers_with_filter_placed_orders(@pytest.mark.parametrize(- "customer_filter, count",+ ("customer_filter", "count"),[({"dateJoined": {"gte": "2019-04-18"}}, 1),({"dateJoined": {"lte": "2012-01-14"}}, 1),@@ -263,7 +263,7 @@ def test_query_customers_with_filter_date_joined_and_updated_at(@pytest.mark.parametrize(- "customer_filter, count",+ ("customer_filter", "count"),[({"numberOfOrders": {"gte": 0, "lte": 1}}, 1),({"numberOfOrders": {"gte": 1, "lte": 3}}, 2),@@ -397,7 +397,7 @@ QUERY_CUSTOMERS_WITH_PAGINATION = """"""def customers_for_search(db, address):accounts = User.objects.bulk_create([@@ -447,7 +447,7 @@ def customers_for_search(db, address):@pytest.mark.parametrize(- "customer_filter, users_order",+ ("customer_filter", "users_order"),[({"search": "example.com"}, ["Alan", "Harry"]), # email({"search": "[email protected]"}, ["Robert", "Xavier"]), # emaildiff --git a/saleor/graphql/account/tests/queries/test_customers_sorting.py b/saleor/graphql/account/tests/queries/test_customers_sorting.pyindex 54b6777234..e61a152ca3 100644--- a/saleor/graphql/account/tests/queries/test_customers_sorting.py+++ b/saleor/graphql/account/tests/queries/test_customers_sorting.py@@ -18,7 +18,7 @@ QUERY_CUSTOMERS_WITH_SORT = """@pytest.mark.parametrize(- "customer_sort, result_order",+ ("customer_sort", "result_order"),[({"field": "FIRST_NAME", "direction": "ASC"}, ["Joe", "John", "Leslie"]),({"field": "FIRST_NAME", "direction": "DESC"}, ["Leslie", "John", "Joe"]),@@ -136,7 +136,7 @@ def customers_for_pagination(db):@pytest.mark.parametrize(- "customer_sort, result_order",+ ("customer_sort", "result_order"),[({"field": "FIRST_NAME", "direction": "ASC"}, ["Joe", "John", "Leslie"]),({"field": "FIRST_NAME", "direction": "DESC"}, ["Leslie", "John", "Joe"]),diff --git a/saleor/graphql/account/tests/queries/test_permission_groups.py b/saleor/graphql/account/tests/queries/test_permission_groups.pyindex 11c22c85ce..01adbf9c4a 100644--- a/saleor/graphql/account/tests/queries/test_permission_groups.py+++ b/saleor/graphql/account/tests/queries/test_permission_groups.py@@ -43,7 +43,7 @@ QUERY_PERMISSION_GROUPS_PAGINATION = """@pytest.mark.parametrize(- "sort_by, permission_groups_order",+ ("sort_by", "permission_groups_order"),[({"field": "NAME", "direction": "ASC"},diff --git a/saleor/graphql/account/tests/queries/test_permission_groups_filtering.py b/saleor/graphql/account/tests/queries/test_permission_groups_filtering.pyindex cf015ba824..a5b5019f1f 100644--- a/saleor/graphql/account/tests/queries/test_permission_groups_filtering.py+++ b/saleor/graphql/account/tests/queries/test_permission_groups_filtering.py@@ -27,8 +27,8 @@ query ($filter: PermissionGroupFilterInput ){@pytest.mark.parametrize(- "permission_group_filter, count",- (({"search": "Manage user groups"}, 1), ({"search": "Manage"}, 2), ({}, 3)),+ ("permission_group_filter", "count"),+ [({"search": "Manage user groups"}, 1), ({"search": "Manage"}, 2), ({}, 3)],)def test_permission_groups_query(permission_group_manage_users,diff --git a/saleor/graphql/account/tests/queries/test_permission_groups_sorting.py b/saleor/graphql/account/tests/queries/test_permission_groups_sorting.pyindex 6e6414340b..98611a11ab 100644--- a/saleor/graphql/account/tests/queries/test_permission_groups_sorting.py+++ b/saleor/graphql/account/tests/queries/test_permission_groups_sorting.py@@ -17,8 +17,8 @@ query ($sort_by: PermissionGroupSortingInput!) {@pytest.mark.parametrize(- "permission_group_sort, result",- (+ ("permission_group_sort", "result"),+ [({"field": "NAME", "direction": "ASC"},["Add", "Manage user group.", "Remove"],@@ -27,7 +27,7 @@ query ($sort_by: PermissionGroupSortingInput!) {{"field": "NAME", "direction": "DESC"},["Remove", "Manage user group.", "Add"],),- ),+ ],)def test_permission_group_with_sort(permission_group_manage_users,diff --git a/saleor/graphql/account/tests/queries/test_staff_users_filtering.py b/saleor/graphql/account/tests/queries/test_staff_users_filtering.pyindex 4b8f0d5bfd..88d74acabc 100644--- a/saleor/graphql/account/tests/queries/test_staff_users_filtering.py+++ b/saleor/graphql/account/tests/queries/test_staff_users_filtering.py@@ -26,7 +26,7 @@ def query_staff_users_with_filter():@pytest.mark.parametrize(- "staff_member_filter, count",+ ("staff_member_filter", "count"),[({"status": "DEACTIVATED"}, 1), ({"status": "ACTIVE"}, 2)],)def test_query_staff_members_with_filter_status(@@ -79,7 +79,7 @@ def test_query_staff_members_with_filter_by_ids(@pytest.mark.parametrize(- "staff_member_filter, count",+ ("staff_member_filter", "count"),[({"search": "mirumee.com"}, 2),({"search": "alice"}, 1),@@ -141,7 +141,7 @@ def test_query_staff_members_with_filter_search(assert len(users) == countdef staff_for_search(db, address):accounts = User.objects.bulk_create([@@ -216,7 +216,7 @@ QUERY_STAFF_WITH_PAGINATION = """@pytest.mark.parametrize(- "staff_member_filter, users_order",+ ("staff_member_filter", "users_order"),[({"search": "[email protected]"}, ["Robert", "Xavier"]), # email({"search": "davis"}, ["Robert", "Xavier"]), # last_namediff --git a/saleor/graphql/account/tests/queries/test_staff_users_sorting.py b/saleor/graphql/account/tests/queries/test_staff_users_sorting.pyindex 417d003d3b..56cfc3e53f 100644--- a/saleor/graphql/account/tests/queries/test_staff_users_sorting.py+++ b/saleor/graphql/account/tests/queries/test_staff_users_sorting.py@@ -18,7 +18,7 @@ QUERY_STAFF_USERS_WITH_SORT = """@pytest.mark.parametrize(- "customer_sort, result_order",+ ("customer_sort", "result_order"),[# Empty string in result is first_name for staff_api_client.({"field": "FIRST_NAME", "direction": "ASC"}, ["", "Joe", "John", "Leslie"]),diff --git a/saleor/graphql/app/tests/mutations/test_app_fetch_manifest.py b/saleor/graphql/app/tests/mutations/test_app_fetch_manifest.pyindex f5f416ad38..e750395ff3 100644--- a/saleor/graphql/app/tests/mutations/test_app_fetch_manifest.py+++ b/saleor/graphql/app/tests/mutations/test_app_fetch_manifest.py@@ -432,7 +432,7 @@ def test_app_fetch_manifest_extensions_incorrect_enum_values(@pytest.mark.parametrize(- "url, target, app_url",+ ("url", "target", "app_url"),[("/app", AppExtensionTargetEnum.APP_PAGE.name, ""),("/app", AppExtensionTargetEnum.APP_PAGE.name, "https://www.example.com/app"),@@ -482,7 +482,7 @@ def test_app_fetch_manifest_extensions_correct_url(@pytest.mark.parametrize(- "url, target",+ ("url", "target"),[("http:/127.0.0.1:8080/app", AppExtensionTargetEnum.POPUP.name),("127.0.0.1:8080/app", AppExtensionTargetEnum.POPUP.name),@@ -535,7 +535,7 @@ def test_app_fetch_manifest_extensions_incorrect_url(@pytest.mark.parametrize(- "app_permissions, extension_permissions",+ ("app_permissions", "extension_permissions"),[([], ["MANAGE_PRODUCTS"]),(["MANAGE_PRODUCTS"], ["MANAGE_PRODUCTS", "MANAGE_APPS"]),@@ -777,7 +777,7 @@ def test_app_fetch_manifest_with_empty_author(@pytest.mark.parametrize(- "format,expected_format,size",+ ("format", "expected_format", "size"),[(None, "png", None),(IconThumbnailFormat.WEBP, "webp", 120),diff --git a/saleor/graphql/app/tests/queries/test_app.py b/saleor/graphql/app/tests/queries/test_app.pyindex 28d32bc8a6..4804f05f36 100644--- a/saleor/graphql/app/tests/queries/test_app.py+++ b/saleor/graphql/app/tests/queries/test_app.py@@ -66,7 +66,7 @@ QUERY_APP = """@freeze_time("2012-01-14 11:00:00")[email protected]("app_type", ("external", "custom"))[email protected]("app_type", ["external", "custom"])def test_app_query(app_type,staff_api_client,@@ -382,7 +382,7 @@ QUERY_APP_AVAILABLE_FOR_STAFF_WITHOUT_MANAGE_APPS = """@freeze_time("2012-01-14 11:00:00")[email protected]("app_type", ("external", "custom"))[email protected]("app_type", ["external", "custom"])def test_app_query_for_staff_without_manage_apps(app_type,staff_api_client,@@ -460,13 +460,13 @@ def test_app_query_access_token_with_audience(@pytest.mark.parametrize("format",- (+ [None,IconThumbnailFormat.WEBP,IconThumbnailFormat.ORIGINAL,- ),+ ],)[email protected]("thumbnail_exists", (True, False))[email protected]("thumbnail_exists", [True, False])def test_app_query_logo_thumbnail_with_size_and_format_url_returned(thumbnail_exists,format,@@ -508,11 +508,11 @@ def test_app_query_logo_thumbnail_with_size_and_format_url_returned(@pytest.mark.parametrize("format",- (+ [None,IconThumbnailFormat.WEBP,IconThumbnailFormat.ORIGINAL,- ),+ ],)def test_app_query_logo_thumbnail_with_zero_size_value_original_image_url_returned(format, staff_api_client, app, site_settings, icon_image, media_rootdiff --git a/saleor/graphql/app/tests/queries/test_app_extensions.py b/saleor/graphql/app/tests/queries/test_app_extensions.pyindex 5dee3e6acf..9d3dc7f9db 100644--- a/saleor/graphql/app/tests/queries/test_app_extensions.py+++ b/saleor/graphql/app/tests/queries/test_app_extensions.py@@ -120,7 +120,7 @@ def test_app_extensions_user_not_staff(@pytest.mark.parametrize(- "filter, expected_count",+ ("filter", "expected_count"),[({}, 4),({"target": AppExtensionTargetEnum.APP_PAGE.name}, 1),diff --git a/saleor/graphql/app/tests/queries/test_apps.py b/saleor/graphql/app/tests/queries/test_apps.pyindex e643e837e5..5abc13493c 100644--- a/saleor/graphql/app/tests/queries/test_apps.py+++ b/saleor/graphql/app/tests/queries/test_apps.py@@ -55,14 +55,14 @@ QUERY_APPS_WITH_FILTER = """@pytest.mark.parametrize(- "app_filter, count",- (+ ("app_filter", "count"),+ [({"search": "Sample"}, 1),({"isActive": False}, 1),({}, 2),({"type": AppTypeEnum.THIRDPARTY.name}, 1),({"type": AppTypeEnum.LOCAL.name}, 1),- ),+ ],)def test_apps_query(staff_api_client,@@ -174,7 +174,7 @@ QUERY_APPS_WITH_SORT = """@pytest.mark.parametrize(- "apps_sort, result_order",+ ("apps_sort", "result_order"),[({"field": "NAME", "direction": "ASC"}, ["facebook", "google"]),({"field": "NAME", "direction": "DESC"}, ["google", "facebook"]),diff --git a/saleor/graphql/app/tests/queries/test_apps_installations.py b/saleor/graphql/app/tests/queries/test_apps_installations.pyindex cd6052ce2f..3300719a66 100644--- a/saleor/graphql/app/tests/queries/test_apps_installations.py+++ b/saleor/graphql/app/tests/queries/test_apps_installations.py@@ -66,13 +66,13 @@ query ($size: Int, $format: IconThumbnailFormatEnum) {@pytest.mark.parametrize("format",- (+ [None,IconThumbnailFormat.WEBP,IconThumbnailFormat.ORIGINAL,- ),+ ],)[email protected]("thumbnail_exists", (True, False))[email protected]("thumbnail_exists", [True, False])def test_apps_installations_query_logo_thumbnail_with_size_and_format_url_returned(thumbnail_exists,format,@@ -117,11 +117,11 @@ def test_apps_installations_query_logo_thumbnail_with_size_and_format_url_return@pytest.mark.parametrize("format",- (+ [None,IconThumbnailFormat.WEBP,IconThumbnailFormat.ORIGINAL,- ),+ ],)def test_apps_installations_query_logo_thumbnail_original_image_url_returned(format,diff --git a/saleor/graphql/app/tests/queries/test_apps_pagination.py b/saleor/graphql/app/tests/queries/test_apps_pagination.pyindex 8b6db77ed6..ea04f74900 100644--- a/saleor/graphql/app/tests/queries/test_apps_pagination.py+++ b/saleor/graphql/app/tests/queries/test_apps_pagination.py@@ -4,7 +4,7 @@ from .....app.models import Appfrom ....tests.utils import get_graphql_contentdef apps_for_pagination():apps = App.objects.bulk_create([@@ -44,7 +44,7 @@ QUERY_APP_PAGINATION = """@pytest.mark.parametrize(- "sort_by, apps_order",+ ("sort_by", "apps_order"),[({"field": "NAME", "direction": "ASC"}, ["Account1", "Account2", "Account3"]),(@@ -76,7 +76,7 @@ def test_apps_pagination_with_sorting(@pytest.mark.parametrize(- "filter_by, apps_order",+ ("filter_by", "apps_order"),[({"search": "Account"}, ["Account1", "Account2"]),({"search": "AccountAccount"}, ["AccountAccount1", "AccountAccount2"]),diff --git a/saleor/graphql/attribute/tests/mutations/test_attribute_create.py b/saleor/graphql/attribute/tests/mutations/test_attribute_create.pyindex 48b2e5ab9e..6991021dc2 100644--- a/saleor/graphql/attribute/tests/mutations/test_attribute_create.py+++ b/saleor/graphql/attribute/tests/mutations/test_attribute_create.py@@ -497,7 +497,8 @@ def test_create_swatch_attribute_and_attribute_values_file_and_value_provided(@pytest.mark.parametrize(- "field, value", [("fileUrl", "test.jpg"), ("value", "blue"), ("contentType", "jpg")]+ ("field", "value"),+ [("fileUrl", "test.jpg"), ("value", "blue"), ("contentType", "jpg")],)def test_create_not_swatch_attribute_provide_not_valid_data(field,@@ -974,7 +975,7 @@ def test_create_attribute_with_reference_input_type_invalid_settings(@pytest.mark.parametrize(- "field, value",+ ("field", "value"),[("filterableInStorefront", True),("filterableInDashboard", True),@@ -1024,7 +1025,7 @@ def test_create_attribute_with_file_input_type_and_invalid_one_settings_value(@pytest.mark.parametrize(- "field, value",+ ("field", "value"),[("filterableInStorefront", True),("filterableInDashboard", True),@@ -1120,13 +1121,13 @@ def test_create_attribute_with_reference_input_type_values_given(@pytest.mark.parametrize(- "input_slug, expected_slug",- (+ ("input_slug", "expected_slug"),+ [("my-slug", "my-slug"),(None, "my-name"),("", "my-name"),("わたし-わ-にっぽん-です", "わたし-わ-にっぽん-です"),- ),+ ],)def test_create_attribute_with_given_slug(staff_api_client,@@ -1206,8 +1207,8 @@ def test_create_attribute_value_name_and_slug_with_unicode(@pytest.mark.parametrize(- "name_1, name_2, error_msg, error_code",- (+ ("name_1", "name_2", "error_msg", "error_code"),+ [("Red color","Red color",@@ -1220,7 +1221,7 @@ def test_create_attribute_value_name_and_slug_with_unicode("Provided values are not unique.",AttributeErrorCode.UNIQUE,),- ),+ ],)def test_create_attribute_and_attribute_values_errors(staff_api_client,diff --git a/saleor/graphql/attribute/tests/mutations/test_attribute_update.py b/saleor/graphql/attribute/tests/mutations/test_attribute_update.pyindex d4b8a218b1..39b02967dc 100644--- a/saleor/graphql/attribute/tests/mutations/test_attribute_update.py+++ b/saleor/graphql/attribute/tests/mutations/test_attribute_update.py@@ -437,7 +437,7 @@ UPDATE_ATTRIBUTE_SLUG_MUTATION = """@pytest.mark.parametrize(- "input_slug, expected_slug, error_message",+ ("input_slug", "expected_slug", "error_message"),[("test-slug", "test-slug", None),("", "", "Slug value cannot be blank."),@@ -525,7 +525,7 @@ def test_update_attribute_slug_exists(@pytest.mark.parametrize(- "input_slug, expected_slug, input_name, error_message, error_field",+ ("input_slug", "expected_slug", "input_name", "error_message", "error_field"),[("test-slug", "test-slug", "New name", None, None),("", "", "New name", "Slug value cannot be blank.", "slug"),@@ -596,8 +596,8 @@ def test_update_attribute_slug_and_name(@pytest.mark.parametrize(- "name_1, name_2, error_msg, error_code",- (+ ("name_1", "name_2", "error_msg", "error_code"),+ [("Red color","Red color",@@ -616,7 +616,7 @@ def test_update_attribute_slug_and_name("Provided values are not unique.",AttributeErrorCode.UNIQUE,),- ),+ ],)def test_update_attribute_and_add_attribute_values_errors(staff_api_client,diff --git a/saleor/graphql/attribute/tests/mutations/test_attribute_value_create.py b/saleor/graphql/attribute/tests/mutations/test_attribute_value_create.pyindex 40a155f92f..8de59da8a7 100644--- a/saleor/graphql/attribute/tests/mutations/test_attribute_value_create.py+++ b/saleor/graphql/attribute/tests/mutations/test_attribute_value_create.py@@ -322,7 +322,7 @@ def test_create_swatch_attribute_value_with_value_and_file(@pytest.mark.parametrize(- "field, value",+ ("field", "value"),[("fileUrl", "http://mirumee.com/test_media/test_file.jpeg"),("contentType", "jpeg"),diff --git a/saleor/graphql/attribute/tests/mutations/test_attribute_value_update.py b/saleor/graphql/attribute/tests/mutations/test_attribute_value_update.pyindex 195409ef9a..ed4670f2f7 100644--- a/saleor/graphql/attribute/tests/mutations/test_attribute_value_update.py+++ b/saleor/graphql/attribute/tests/mutations/test_attribute_value_update.py@@ -411,7 +411,7 @@ def test_update_swatch_attribute_value_clear_file_value(@pytest.mark.parametrize(- "field, input_value",+ ("field", "input_value"),[("fileUrl", "http://mirumee.com/test_media/test_file.jpeg"),("contentType", "jpeg"),diff --git a/saleor/graphql/attribute/tests/queries/test_attribute_filter.py b/saleor/graphql/attribute/tests/queries/test_attribute_filter.pyindex bf42130cbd..e0077193d8 100644--- a/saleor/graphql/attribute/tests/queries/test_attribute_filter.py+++ b/saleor/graphql/attribute/tests/queries/test_attribute_filter.py@@ -74,7 +74,7 @@ def test_search_attributes_value(@pytest.mark.parametrize(- "filter_by, attributes_count",+ ("filter_by", "attributes_count"),[({"slugs": ["red", "blue"]}, 2), ({"slugs": ["red"]}, 1), ({"slugs": []}, 2)],)def test_atribute_values_with_filtering_slugs(diff --git a/saleor/graphql/attribute/tests/queries/test_attribute_filtering_with_channels.py b/saleor/graphql/attribute/tests/queries/test_attribute_filtering_with_channels.pyindex de46a4f41a..54c606c155 100644--- a/saleor/graphql/attribute/tests/queries/test_attribute_filtering_with_channels.py+++ b/saleor/graphql/attribute/tests/queries/test_attribute_filtering_with_channels.py@@ -193,7 +193,7 @@ def test_attributes_with_filtering_without_channel(@pytest.mark.parametrize(- "tested_field, attribute_count",+ ("tested_field", "attribute_count"),[("inCategory", 5), ("inCollection", 5)],)def test_products_with_filtering_with_channel_as_staff_user(@@ -260,7 +260,7 @@ def test_products_with_alternative_filtering_with_channel_as_staff_user(@pytest.mark.parametrize(- "tested_field, attribute_count",+ ("tested_field", "attribute_count"),[("inCategory", 5), ("inCollection", 5)],)def test_products_with_filtering_as_anonymous_client(@@ -293,7 +293,7 @@ def test_products_with_filtering_as_anonymous_client(@pytest.mark.parametrize(- "tested_field, attribute_count",+ ("tested_field", "attribute_count"),[("inCategory", 5), ("inCollection", 5)],)def test_products_with_filtering_with_not_visible_in_listings_as_staff_user(@@ -332,7 +332,7 @@ def test_products_with_filtering_with_not_visible_in_listings_as_staff_user(@pytest.mark.parametrize(- "tested_field, attribute_count",+ ("tested_field", "attribute_count"),[("inCategory", 0),# Products not visible in listings should be visible in collections@@ -369,7 +369,7 @@ def test_products_with_filtering_with_not_visible_in_listings_as_anonymous_clien@pytest.mark.parametrize(- "tested_field, attribute_count",+ ("tested_field", "attribute_count"),[("inCategory", 5), ("inCollection", 5)],)def test_products_with_filtering_with_not_published_as_staff_user(@@ -408,7 +408,7 @@ def test_products_with_filtering_with_not_published_as_staff_user(@pytest.mark.parametrize(- "tested_field, attribute_count",+ ("tested_field", "attribute_count"),[("inCategory", 0), ("inCollection", 0)],)def test_products_with_filtering_with_not_published_as_anonymous_client(diff --git a/saleor/graphql/attribute/tests/queries/test_attribute_pagination.py b/saleor/graphql/attribute/tests/queries/test_attribute_pagination.pyindex 118dbefa70..fd2dec39c4 100644--- a/saleor/graphql/attribute/tests/queries/test_attribute_pagination.py+++ b/saleor/graphql/attribute/tests/queries/test_attribute_pagination.py@@ -155,7 +155,7 @@ QUERY_ATTRIBUTES_PAGINATION = """@pytest.mark.parametrize(- "sort_by, attributes_order",+ ("sort_by", "attributes_order"),[({"field": "NAME", "direction": "ASC"}, ["Attr1", "Attr2", "Attr3"]),({"field": "NAME", "direction": "DESC"}, ["AttrAttr2", "AttrAttr1", "Attr3"]),@@ -192,7 +192,7 @@ def test_attributes_pagination_with_sorting(@pytest.mark.parametrize(- "filter_by, attributes_order",+ ("filter_by", "attributes_order"),[({"search": "AttrAttr"}, ["AttrAttr2", "AttrAttr1"]),({"search": "attr_attr"}, ["AttrAttr2", "AttrAttr1"]),diff --git a/saleor/graphql/attribute/tests/queries/test_attribute_query.py b/saleor/graphql/attribute/tests/queries/test_attribute_query.pyindex fdc0bc0985..784e57b4bc 100644--- a/saleor/graphql/attribute/tests/queries/test_attribute_query.py+++ b/saleor/graphql/attribute/tests/queries/test_attribute_query.py@@ -548,15 +548,15 @@ def test_attributes_query_ids_not_exists(user_api_client, category):@pytest.mark.parametrize(- "attribute, expected_value",- (+ ("attribute", "expected_value"),+ [("filterable_in_storefront", True),("filterable_in_dashboard", True),("visible_in_storefront", True),("available_in_grid", True),("value_required", False),("storefront_search_position", 0),- ),+ ],)def test_retrieving_the_restricted_attributes_restricted(staff_api_client,@@ -664,7 +664,7 @@ def test_attributes_in_collection_query(@pytest.mark.parametrize(- "input_type, expected_with_choice_return",+ ("input_type", "expected_with_choice_return"),[(AttributeInputType.DROPDOWN, True),(AttributeInputType.MULTISELECT, True),diff --git a/saleor/graphql/attribute/tests/queries/test_attribute_where.py b/saleor/graphql/attribute/tests/queries/test_attribute_where.pyindex 5ae47f8523..58adf80724 100644--- a/saleor/graphql/attribute/tests/queries/test_attribute_where.py+++ b/saleor/graphql/attribute/tests/queries/test_attribute_where.py@@ -76,7 +76,7 @@ def test_attributes_filter_by_ids_empty_list(api_client, product_type_attribute_@pytest.mark.parametrize(- "where, indexes",+ ("where", "indexes"),[({"eq": "Color"}, [0]),({"eq": "test"}, []),@@ -108,7 +108,7 @@ def test_attributes_filter_by_name(@pytest.mark.parametrize(- "where, indexes",+ ("where", "indexes"),[({"eq": "color"}, [0]),({"eq": "test"}, []),@@ -139,7 +139,9 @@ def test_attributes_filter_by_slug(assert returned_attrs == {attributes[index].slug for index in indexes}[email protected]("value, indexes", [(True, [0]), (False, [1, 2]), (None, [])])+ ("value", "indexes"), [(True, [0]), (False, [1, 2]), (None, [])]+)def test_attributes_filter_by_with_choices(value, indexes, api_client, color_attribute, date_attribute, rich_text_attribute):@@ -159,7 +161,7 @@ def test_attributes_filter_by_with_choices(@pytest.mark.parametrize(- "where, indexes",+ ("where", "indexes"),[({"eq": AttributeInputTypeEnum.DROPDOWN.name}, [0]),({"eq": AttributeInputTypeEnum.FILE.name}, []),@@ -206,7 +208,7 @@ def test_attributes_filter_by_input_type(@pytest.mark.parametrize(- "where, indexes",+ ("where", "indexes"),[({"eq": AttributeEntityTypeEnum.PRODUCT_VARIANT.name}, [2]),({"eq": AttributeEntityTypeEnum.PRODUCT.name}, []),@@ -264,7 +266,7 @@ def test_attributes_filter_by_entity_type(@pytest.mark.parametrize(- "where, indexes",+ ("where", "indexes"),[({"eq": AttributeTypeEnum.PRODUCT_TYPE.name}, [0, 1]),({"eq": AttributeTypeEnum.PAGE_TYPE.name}, []),@@ -316,7 +318,7 @@ def test_attributes_filter_by_type(@pytest.mark.parametrize(- "where, indexes",+ ("where", "indexes"),[({"eq": MeasurementUnitsEnum.CM.name}, [1]),({"eq": MeasurementUnitsEnum.SQ_CM.name}, []),@@ -378,7 +380,9 @@ def test_attributes_filter_by_unit(assert returned_attrs == {attributes[index].slug for index in indexes}[email protected]("value, indexes", [(True, [0, 1]), (False, [2]), (None, [])])+ ("value", "indexes"), [(True, [0, 1]), (False, [2]), (None, [])]+)def test_attributes_filter_by_value_required(value, indexes, api_client, color_attribute, date_attribute, rich_text_attribute):@@ -404,7 +408,9 @@ def test_attributes_filter_by_value_required(assert returned_attrs == {attributes[index].slug for index in indexes}[email protected]("value, indexes", [(True, [0, 1]), (False, [2]), (None, [])])+ ("value", "indexes"), [(True, [0, 1]), (False, [2]), (None, [])]+)def test_attributes_filter_by_visible_in_storefront(value,indexes,@@ -439,7 +445,9 @@ def test_attributes_filter_by_visible_in_storefront(assert returned_attrs == {attributes[index].slug for index in indexes}[email protected]("value, indexes", [(True, [0]), (False, [1, 2]), (None, [])])+ ("value", "indexes"), [(True, [0]), (False, [1, 2]), (None, [])]+)def test_attributes_filter_by_filterable_in_dashboard(value, indexes, api_client, color_attribute, date_attribute, rich_text_attribute):@@ -1491,7 +1499,7 @@ def test_attributes_filter_and_where_both_used(api_client, product_type_attribut@pytest.mark.parametrize(- "where, field_name",+ ("where", "field_name"),[({"name": {"eq": "Text", "oneOf": ["Color", "Text"]}}, "name"),({"slug": {"eq": "text", "oneOf": ["color", "text"]}}, "slug"),@@ -1770,7 +1778,7 @@ ATTRIBUTES_SEARCH_QUERY = """@pytest.mark.parametrize(- "search, indexes",+ ("search", "indexes"),[("color", [0]),("size", [1]),diff --git a/saleor/graphql/attribute/tests/queries/test_attributes_sort.py b/saleor/graphql/attribute/tests/queries/test_attributes_sort.pyindex 4c7b4c5fa6..2a4fdf8125 100644--- a/saleor/graphql/attribute/tests/queries/test_attributes_sort.py+++ b/saleor/graphql/attribute/tests/queries/test_attributes_sort.py@@ -56,7 +56,7 @@ def test_sort_attributes_by_default_sorting(api_client):assert attributes[1]["node"]["slug"] == "b"[email protected]("is_variant", (True, False))[email protected]("is_variant", [True, False])def test_attributes_of_products_are_sorted(user_api_client, product, color_attribute, is_variant, channel_USD):diff --git a/saleor/graphql/channel/tests/mutations/test_channel_reorder_warehouses.py b/saleor/graphql/channel/tests/mutations/test_channel_reorder_warehouses.pyindex 6651b3fa6e..6c07ff55a1 100644--- a/saleor/graphql/channel/tests/mutations/test_channel_reorder_warehouses.py+++ b/saleor/graphql/channel/tests/mutations/test_channel_reorder_warehouses.py@@ -29,7 +29,7 @@ CHANNEL_REORDER_WAREHOUSES = """@pytest.mark.parametrize(- "moves, expected_order",+ ("moves", "expected_order"),[([(0, 1), (2, -1)], [1, 2, 0]),([(2, -2)], [2, 0, 1]),diff --git a/saleor/graphql/checkout/mutations/utils.py b/saleor/graphql/checkout/mutations/utils.pyindex 252e7a551d..98b4807a6f 100644--- a/saleor/graphql/checkout/mutations/utils.py+++ b/saleor/graphql/checkout/mutations/utils.py@@ -476,7 +476,7 @@ def find_line_id_when_variant_parameter_used(# if same variant occur in multiple lines `lineId` parameter have to be usedif len(line_info) > 1:message = (- "Variant occurs in multiple lines. Use `lineId` instead " "of `variantId`."+ "Variant occurs in multiple lines. Use `lineId` instead of `variantId`.")variant_global_id = graphene.Node.to_global_id("ProductVariant", variant_db_id)diff --git a/saleor/graphql/checkout/tests/benchmark/conftest.py b/saleor/graphql/checkout/tests/benchmark/conftest.pyindex f2a101edb1..145f630a61 100644--- a/saleor/graphql/checkout/tests/benchmark/conftest.py+++ b/saleor/graphql/checkout/tests/benchmark/conftest.py@@ -16,7 +16,7 @@ def customer_checkout(customer_user, checkout_with_voucher_percentage_and_shippireturn checkout_with_voucher_percentage_and_shippingdef checkout_with_variants(checkout,stock,@@ -62,7 +62,7 @@ def checkout_with_variants_for_cc(checkout_for_cc, stocks_for_cc, product_varianreturn checkout_for_ccdef checkout_with_shipping_address(checkout_with_variants, address):checkout = checkout_with_variants@@ -72,7 +72,7 @@ def checkout_with_shipping_address(checkout_with_variants, address):return checkoutdef checkout_with_shipping_address_for_cc(checkout_with_variants_for_cc, address):checkout = checkout_with_variants_for_cc@@ -82,7 +82,7 @@ def checkout_with_shipping_address_for_cc(checkout_with_variants_for_cc, addressreturn checkoutdef checkout_with_shipping_method(checkout_with_shipping_address, shipping_method):checkout = checkout_with_shipping_address@@ -92,7 +92,7 @@ def checkout_with_shipping_method(checkout_with_shipping_address, shipping_methoreturn checkoutdef checkout_with_delivery_method_for_cc(warehouses_for_cc, checkout_with_shipping_address_for_cc):@@ -104,7 +104,7 @@ def checkout_with_delivery_method_for_cc(return checkoutdef checkout_with_billing_address(checkout_with_shipping_method, address):checkout = checkout_with_shipping_method@@ -114,7 +114,7 @@ def checkout_with_billing_address(checkout_with_shipping_method, address):return checkoutdef checkout_with_billing_address_for_cc(checkout_with_delivery_method_for_cc, address):checkout = checkout_with_delivery_method_for_cc@@ -124,7 +124,7 @@ def checkout_with_billing_address_for_cc(checkout_with_delivery_method_for_cc, areturn checkoutdef checkout_with_voucher(checkout_with_billing_address, voucher):checkout = checkout_with_billing_addressmanager = get_plugins_manager()@@ -136,7 +136,7 @@ def checkout_with_voucher(checkout_with_billing_address, voucher):return checkoutdef checkout_with_charged_payment(checkout_with_voucher):checkout = checkout_with_vouchermanager = get_plugins_manager()@@ -171,7 +171,7 @@ def checkout_with_charged_payment(checkout_with_voucher):return checkoutdef checkout_with_digital_line_with_charged_payment(checkout_with_billing_address, digital_content, site_settings):@@ -212,7 +212,7 @@ def checkout_with_digital_line_with_charged_payment(return checkoutdef checkout_with_charged_payment_for_cc(checkout_with_billing_address_for_cc):checkout = checkout_with_billing_address_for_ccmanager = get_plugins_manager()@@ -247,7 +247,7 @@ def checkout_with_charged_payment_for_cc(checkout_with_billing_address_for_cc):return checkoutdef checkout_preorder_with_charged_payment(checkout_with_billing_address,preorder_variant_channel_threshold,diff --git a/saleor/graphql/checkout/tests/mutations/test_checkout_complete_with_payment.py b/saleor/graphql/checkout/tests/mutations/test_checkout_complete_with_payment.pyindex 117e161db1..a21b4d83f4 100644--- a/saleor/graphql/checkout/tests/mutations/test_checkout_complete_with_payment.py+++ b/saleor/graphql/checkout/tests/mutations/test_checkout_complete_with_payment.py@@ -329,7 +329,7 @@ def test_checkout_complete_with_metadata(assert order.metadata == {**checkout.metadata_storage.metadata,- **{metadata_key: metadata_value},+ metadata_key: metadata_value,}assert order.private_metadata == checkout.metadata_storage.private_metadata@@ -468,7 +468,7 @@ def test_checkout_complete_with_metadata_checkout_without_metadata(assert order.metadata == {**checkout.metadata_storage.metadata,- **{metadata_key: metadata_value},+ metadata_key: metadata_value,}assert order.private_metadata == checkout.metadata_storage.private_metadata@@ -2154,7 +2154,7 @@ def test_checkout_complete_checkout_without_lines(@pytest.mark.integration[email protected]("token, error", list(TOKEN_VALIDATION_MAPPING.items()))[email protected](("token", "error"), list(TOKEN_VALIDATION_MAPPING.items()))@patch("saleor.payment.gateways.dummy_credit_card.plugin.""DummyCreditCardGatewayPlugin.DEFAULT_ACTIVE",@@ -4048,13 +4048,11 @@ def test_checkout_complete_with_not_normalized_shipping_address(checkout = checkout_with_gift_cardshipping_address = Address.objects.create(- **{- "country": "US",- "city": "Washington",- "country_area": "District of Columbia",- "street_address_1": "1600 Pennsylvania Avenue NW",- "postal_code": "20500",- }+ country="US",+ city="Washington",+ country_area="District of Columbia",+ street_address_1="1600 Pennsylvania Avenue NW",+ postal_code="20500",)checkout.shipping_address = shipping_addresscheckout.shipping_method = shipping_method@@ -4113,13 +4111,11 @@ def test_checkout_complete_with_not_normalized_billing_address(checkout = checkout_with_gift_cardbilling_address = Address.objects.create(- **{- "country": "US",- "city": "Washington",- "country_area": "District of Columbia",- "street_address_1": "1600 Pennsylvania Avenue NW",- "postal_code": "20500",- }+ country="US",+ city="Washington",+ country_area="District of Columbia",+ street_address_1="1600 Pennsylvania Avenue NW",+ postal_code="20500",)checkout.shipping_address = addresscheckout.shipping_method = shipping_methoddiff --git a/saleor/graphql/checkout/tests/mutations/test_checkout_complete_with_transactions.py b/saleor/graphql/checkout/tests/mutations/test_checkout_complete_with_transactions.pyindex 3157f3bcf8..f1be2ee59f 100644--- a/saleor/graphql/checkout/tests/mutations/test_checkout_complete_with_transactions.py+++ b/saleor/graphql/checkout/tests/mutations/test_checkout_complete_with_transactions.py@@ -1213,7 +1213,7 @@ def test_checkout_complete_with_metadata(assert order.metadata == {**checkout.metadata_storage.metadata,- **{metadata_key: metadata_value},+ metadata_key: metadata_value,}assert order.private_metadata == checkout.metadata_storage.private_metadata@@ -1329,7 +1329,7 @@ def test_checkout_complete_with_metadata_checkout_without_metadata(assert order.metadata == {**checkout.metadata_storage.metadata,- **{metadata_key: metadata_value},+ metadata_key: metadata_value,}assert order.private_metadata == checkout.metadata_storage.private_metadata@@ -3535,13 +3535,11 @@ def test_checkout_complete_with_not_normalized_shipping_address(# givenshipping_address = Address.objects.create(- **{- "country": "US",- "city": "Washington",- "country_area": "District of Columbia",- "street_address_1": "1600 Pennsylvania Avenue NW",- "postal_code": "20500",- }+ country="US",+ city="Washington",+ country_area="District of Columbia",+ street_address_1="1600 Pennsylvania Avenue NW",+ postal_code="20500",)checkout = prepare_checkout_for_test(checkout_with_gift_card,@@ -3582,13 +3580,11 @@ def test_checkout_complete_with_not_normalized_billing_address():# givenbilling_address = Address.objects.create(- **{- "country": "US",- "city": "Washington",- "country_area": "District of Columbia",- "street_address_1": "1600 Pennsylvania Avenue NW",- "postal_code": "20500",- }+ country="US",+ city="Washington",+ country_area="District of Columbia",+ street_address_1="1600 Pennsylvania Avenue NW",+ postal_code="20500",)checkout = prepare_checkout_for_test(checkout_with_gift_card,diff --git a/saleor/graphql/checkout/tests/mutations/test_checkout_create.py b/saleor/graphql/checkout/tests/mutations/test_checkout_create.pyindex 414858fbbf..436c37a50c 100644--- a/saleor/graphql/checkout/tests/mutations/test_checkout_create.py+++ b/saleor/graphql/checkout/tests/mutations/test_checkout_create.py@@ -1034,8 +1034,8 @@ def test_checkout_create_with_variant_without_inventory_tracking(@pytest.mark.parametrize(- "quantity, expected_error_message, error_code",- (+ ("quantity", "expected_error_message", "error_code"),+ [(-1,"The quantity should be higher than zero.",@@ -1046,7 +1046,7 @@ def test_checkout_create_with_variant_without_inventory_tracking("Cannot add more than 50 times this item: SKU_A.",CheckoutErrorCode.QUANTITY_GREATER_THAN_LIMIT,),- ),+ ],)def test_checkout_create_cannot_add_invalid_quantities(api_client,@@ -1775,7 +1775,7 @@ def test_create_checkout_with_unpublished_product(@pytest.mark.parametrize(- "address_data, address_input_name, address_db_field_name",+ ("address_data", "address_input_name", "address_db_field_name"),[({"country": "PL"}, # missing postalCode, streetAddress@@ -1806,7 +1806,6 @@ def test_create_checkout_with_unpublished_product("billingAddress","billing_address",),- ({"country": "US"}, "shippingAddress", "shipping_address"),({"country": "US",@@ -1885,7 +1884,7 @@ def test_checkout_create_with_skip_required_raises_validation_error(@pytest.mark.parametrize(- "address_input_name, address_db_field_name",+ ("address_input_name", "address_db_field_name"),[("shippingAddress", "shipping_address"), ("billingAddress", "billing_address")],)def test_checkout_create_with_skip_required_saves_address(@@ -1920,7 +1919,7 @@ def test_checkout_create_with_skip_required_saves_address(@pytest.mark.parametrize(- "address_data, address_input_name, address_db_field_name",+ ("address_data", "address_input_name", "address_db_field_name"),[({@@ -2001,7 +2000,7 @@ def test_checkout_create_with_skip_value_check_doesnt_raise_error(@pytest.mark.parametrize(- "address_data, address_input_name",+ ("address_data", "address_input_name"),[({@@ -2069,7 +2068,7 @@ def test_checkout_create_with_skip_value_raises_required_fields_error(@pytest.mark.parametrize(- "address_input_name, address_db_field_name",+ ("address_input_name", "address_db_field_name"),[("shippingAddress", "shipping_address"), ("billingAddress", "billing_address")],)def test_checkout_create_with_skip_value_check_saves_address(@@ -2119,7 +2118,7 @@ def test_checkout_create_with_skip_value_check_saves_address(@pytest.mark.parametrize(- "address_data, address_input_name, address_db_field_name",+ ("address_data", "address_input_name", "address_db_field_name"),[({@@ -2195,7 +2194,7 @@ def test_checkout_create_with_skip_value_and_skip_required_fields(@pytest.mark.parametrize(- "address_input_name, address_db_field_name",+ ("address_input_name", "address_db_field_name"),[("shippingAddress", "shipping_address"), ("billingAddress", "billing_address")],)def test_checkout_create_with_skip_value_and_skip_required_saves_address(diff --git a/saleor/graphql/checkout/tests/mutations/test_checkout_delivery_method_update.py b/saleor/graphql/checkout/tests/mutations/test_checkout_delivery_method_update.pyindex 26852b4a3c..9be98829bf 100644--- a/saleor/graphql/checkout/tests/mutations/test_checkout_delivery_method_update.py+++ b/saleor/graphql/checkout/tests/mutations/test_checkout_delivery_method_update.py@@ -47,9 +47,9 @@ MUTATION_UPDATE_DELIVERY_METHOD = """"""[email protected]("is_valid_delivery_method", (True, False))[email protected]("is_valid_delivery_method", [True, False])@pytest.mark.parametrize(- "delivery_method, node_name, attribute_name",+ ("delivery_method", "node_name", "attribute_name"),[("warehouse", "Warehouse", "collection_point"),("shipping_method", "ShippingMethod", "shipping_method"),@@ -118,9 +118,9 @@ def test_checkout_delivery_method_update(assert checkout.collection_point is None[email protected]("is_valid_delivery_method", (True, False))[email protected]("is_valid_delivery_method", [True, False])@pytest.mark.parametrize(- "delivery_method, node_name, attribute_name",+ ("delivery_method", "node_name", "attribute_name"),[("warehouse", "Warehouse", "collection_point"),("shipping_method", "ShippingMethod", "shipping_method"),@@ -193,7 +193,7 @@ def test_checkout_delivery_method_update_no_checkout_metadata(assert checkout.collection_point is None[email protected]("is_valid_delivery_method", (True, False))[email protected]("is_valid_delivery_method", [True, False])@mock.patch("saleor.webhook.transport.synchronous.transport.send_webhook_request_sync")@patch("saleor.graphql.checkout.mutations.checkout_delivery_method_update."@@ -447,9 +447,9 @@ def test_checkout_delivery_method_update_shipping_zone_with_channel(assert checkout.shipping_method == shipping_method[email protected]("is_valid_delivery_method", (True, False))[email protected]("is_valid_delivery_method", [True, False])@pytest.mark.parametrize(- "delivery_method, node_name, attribute_name",+ ("delivery_method", "node_name", "attribute_name"),[("warehouse", "Warehouse", "collection_point"),("shipping_method", "ShippingMethod", "shipping_method"),@@ -516,9 +516,9 @@ def test_checkout_delivery_method_update_with_not_all_required_shipping_address_assert checkout.collection_point is None[email protected]("is_valid_delivery_method", (True, False))[email protected]("is_valid_delivery_method", [True, False])@pytest.mark.parametrize(- "delivery_method, node_name, attribute_name",+ ("delivery_method", "node_name", "attribute_name"),[("warehouse", "Warehouse", "collection_point"),("shipping_method", "ShippingMethod", "shipping_method"),diff --git a/saleor/graphql/checkout/tests/mutations/test_checkout_lines_add.py b/saleor/graphql/checkout/tests/mutations/test_checkout_lines_add.pyindex b21ab9698a..134fa53a29 100644--- a/saleor/graphql/checkout/tests/mutations/test_checkout_lines_add.py+++ b/saleor/graphql/checkout/tests/mutations/test_checkout_lines_add.py@@ -213,7 +213,6 @@ def test_add_to_existing_line_with_sale_when_checkout_has_voucher(expected_discount_per_single_item = Decimal(25)content = get_graphql_content(response)data = content["data"]["checkoutLinesAdd"]- print(data)assert not data["errors"]checkout.refresh_from_db()lines, _ = fetch_checkout_lines(checkout)@@ -283,7 +282,7 @@ def test_checkout_lines_add_with_existing_variant_and_metadata(# thenassert not data["errors"]assert line.quantity == 4- assert line.metadata == {**old_meta, **{metadata_key: metadata_value}}+ assert line.metadata == {**old_meta, metadata_key: metadata_value}def test_checkout_lines_add_with_new_variant_and_metadata(diff --git a/saleor/graphql/checkout/tests/mutations/test_checkout_shipping_method_update.py b/saleor/graphql/checkout/tests/mutations/test_checkout_shipping_method_update.pyindex e640648a40..c593948a74 100644--- a/saleor/graphql/checkout/tests/mutations/test_checkout_shipping_method_update.py+++ b/saleor/graphql/checkout/tests/mutations/test_checkout_shipping_method_update.py@@ -38,7 +38,7 @@ MUTATION_UPDATE_SHIPPING_METHOD = """# TODO: Deprecated[email protected]("is_valid_shipping_method", (True, False))[email protected]("is_valid_shipping_method", [True, False])@patch("saleor.graphql.checkout.mutations.checkout_shipping_method_update.""clean_delivery_method"diff --git a/saleor/graphql/checkout/tests/mutations/test_order_create_from_checkout.py b/saleor/graphql/checkout/tests/mutations/test_order_create_from_checkout.pyindex 113c5b45e4..80e462119d 100644--- a/saleor/graphql/checkout/tests/mutations/test_order_create_from_checkout.py+++ b/saleor/graphql/checkout/tests/mutations/test_order_create_from_checkout.py@@ -252,7 +252,7 @@ def test_order_from_checkout_with_transaction(@pytest.mark.parametrize(- "auto_confirm, order_status",+ ("auto_confirm", "order_status"),[(True, OrderStatus.UNFULFILLED), (False, OrderStatus.UNCONFIRMED)],)def test_order_from_checkout_auto_confirm_flag(@@ -361,11 +361,11 @@ def test_order_from_checkout_with_metadata(assert order.total.gross == total.grossassert order.metadata == {**checkout.metadata_storage.metadata,- **{metadata_key: metadata_value},+ metadata_key: metadata_value,}assert order.private_metadata == {**checkout.metadata_storage.private_metadata,- **{metadata_key: metadata_value},+ metadata_key: metadata_value,}order_confirmed_mock.assert_called_once_with(order)@@ -434,11 +434,11 @@ def test_order_from_checkout_with_metadata_checkout_without_metadata(assert order.total.gross == total.grossassert order.metadata == {**checkout.metadata_storage.metadata,- **{metadata_key: metadata_value},+ metadata_key: metadata_value,}assert order.private_metadata == {**checkout.metadata_storage.private_metadata,- **{metadata_key: metadata_value},+ metadata_key: metadata_value,}order_confirmed_mock.assert_called_once_with(order)diff --git a/saleor/graphql/checkout/tests/test_checkout.py b/saleor/graphql/checkout/tests/test_checkout.pyindex 781573d8e5..a58ba7804c 100644--- a/saleor/graphql/checkout/tests/test_checkout.py+++ b/saleor/graphql/checkout/tests/test_checkout.py@@ -233,7 +233,7 @@ def test_checkout_available_payment_gateways_currency_specified_USD(api_client,checkout_with_item,expected_dummy_gateway,- sample_gateway,+ _sample_gateway,):checkout_with_item.currency = "USD"checkout_with_item.save(update_fields=["currency"])@@ -252,7 +252,7 @@ def test_checkout_available_payment_gateways_currency_specified_USD(def test_checkout_available_payment_gateways_currency_specified_EUR(- api_client, checkout_with_item, expected_dummy_gateway, sample_gateway+ api_client, checkout_with_item, expected_dummy_gateway, _sample_gateway):checkout_with_item.currency = "EUR"checkout_with_item.save(update_fields=["currency"])diff --git a/saleor/graphql/checkout/tests/test_checkout_filters.py b/saleor/graphql/checkout/tests/test_checkout_filters.pyindex 821365d0fd..2a071d17b3 100644--- a/saleor/graphql/checkout/tests/test_checkout_filters.py+++ b/saleor/graphql/checkout/tests/test_checkout_filters.py@@ -130,7 +130,7 @@ def test_checkout_query_with_filter_channels_with_empty_channel(@pytest.mark.parametrize(- "checkouts_filter, count",+ ("checkouts_filter", "count"),[({@@ -168,7 +168,7 @@ def test_checkout_query_with_filter_created(@pytest.mark.parametrize(- "checkouts_filter, user_field, user_value",+ ("checkouts_filter", "user_field", "user_value"),[({"customer": "admin"}, "email", "[email protected]"),({"customer": "John"}, "first_name", "johnny"),@@ -221,7 +221,7 @@ QUERY_CHECKOUT_WITH_SORT = """@pytest.mark.parametrize(- "checkout_sort, result_order",+ ("checkout_sort", "result_order"),[({"field": "CREATION_DATE", "direction": "ASC"}, [1, 0, 2]),({"field": "CREATION_DATE", "direction": "DESC"}, [2, 0, 1]),@@ -291,7 +291,7 @@ def test_query_checkout_with_sort(@pytest.mark.parametrize(- "checkouts_filter, count",+ ("checkouts_filter", "count"),[({"search": "user_email"}, 2),({"search": "[email protected]"}, 1),@@ -396,7 +396,7 @@ def test_checkouts_query_with_filter_search_by_token(@pytest.mark.parametrize(- "transaction_data, statuses, expected_count",+ ("transaction_data", "statuses", "expected_count"),[({"authorized_value": Decimal("10")},@@ -507,7 +507,7 @@ def test_checkouts_query_with_filter_authorize_status(@pytest.mark.parametrize(- "transaction_data, statuses, expected_count",+ ("transaction_data", "statuses", "expected_count"),[({"charged_value": Decimal("10")},diff --git a/saleor/graphql/core/mutations.py b/saleor/graphql/core/mutations.pyindex 7b0592f2fd..ec58232255 100644--- a/saleor/graphql/core/mutations.py+++ b/saleor/graphql/core/mutations.py@@ -789,7 +789,6 @@ class ModelMutation(BaseMutation):@classmethoddef post_save_action(cls, info: ResolveInfo, instance, cleaned_input):"""Perform an action after saving an object and its m2m."""- pass@classmethoddef perform_mutation(cls, _root, info: ResolveInfo, /, **data):diff --git a/saleor/graphql/core/tests/test_converters.py b/saleor/graphql/core/tests/test_converters.pyindex 1ba450c2dc..a68da0da53 100644--- a/saleor/graphql/core/tests/test_converters.py+++ b/saleor/graphql/core/tests/test_converters.py@@ -60,7 +60,7 @@ def test_get_form_field_description_nonempty_extra_help_text(mockfield):@pytest.mark.parametrize(- "infield,outfield_type,expected_description",+ ("infield", "outfield_type", "expected_description"),[# given(forms.CharField(), graphene.String, None),diff --git a/saleor/graphql/core/tests/test_core.py b/saleor/graphql/core/tests/test_core.pyindex 9085f93893..813572b932 100644--- a/saleor/graphql/core/tests/test_core.py+++ b/saleor/graphql/core/tests/test_core.py@@ -163,13 +163,13 @@ class PermissionEnumForTests(enum.Enum):@patch("graphene.types.mutation.Mutation.__init_subclass_with_meta__")@pytest.mark.parametrize(- "should_fail,permissions_value",- (+ ("should_fail", "permissions_value"),+ [(False, (PermissionEnumForTests.TEST,)),(True, PermissionEnumForTests.TEST),(True, 123),(True, ("TEST",)),- ),+ ],)def test_mutation_invalid_permission_in_meta(_mocked, should_fail, permissions_value):def _run_test():@@ -188,7 +188,7 @@ def test_mutation_invalid_permission_in_meta(_mocked, should_fail, permissions_v@pytest.mark.parametrize(- "value, count, product_indexes",+ ("value", "count", "product_indexes"),[({"lte": 50, "gte": 25}, 1, [2]),({"lte": 25}, 2, [0, 1]),@@ -244,7 +244,7 @@ def test_requestor_is_superuser_for_app(app):@pytest.mark.vcr@pytest.mark.parametrize(- "url, expected_media_type",+ ("url", "expected_media_type"),[("http://www.youtube.com/watch?v=dQw4w9WgXcQ",diff --git a/saleor/graphql/core/tests/test_core_reordering.py b/saleor/graphql/core/tests/test_core_reordering.pyindex b5df88aeac..d28cfcdc35 100644--- a/saleor/graphql/core/tests/test_core_reordering.py+++ b/saleor/graphql/core/tests/test_core_reordering.py@@ -96,7 +96,7 @@ def test_reordering_non_sequential(sorted_entries_gaps):@pytest.mark.parametrize(- "operation, expected_operations",+ ("operation", "expected_operations"),[((0, +5), (+5, -1, -1, -1, -1, -1)), ((5, -5), (+1, +1, +1, +1, +1, -5))],)def test_inserting_at_the_edges(sorted_entries_seq, operation, expected_operations):diff --git a/saleor/graphql/core/tests/test_graphql.py b/saleor/graphql/core/tests/test_graphql.pyindex 1c7e7d9f32..f07f916717 100644--- a/saleor/graphql/core/tests/test_graphql.py+++ b/saleor/graphql/core/tests/test_graphql.py@@ -248,27 +248,25 @@ def test_get_nodes(product_list):invalid_item = Mock(type="test", pk=-1)invalid_item_global_id = to_global_id(invalid_item.type, invalid_item.pk)global_ids.append(invalid_item_global_id)- with pytest.raises(GraphQLError) as exc:+ with pytest.raises(GraphQLError, match="Must receive Product id") as exc:get_nodes(global_ids, Product)assert exc.value.args == (f"Must receive Product id: {invalid_item_global_id}.",)# Raise an error if no nodes were foundglobal_ids = []- msg = f"Could not resolve to a node with the global id list of '{global_ids}'."- with pytest.raises(Exception) as exc:+ with pytest.raises(+ GraphQLError, match="Could not resolve to a node with the global id list of"+ ):get_nodes(global_ids, Product)- assert exc.value.args == (msg,)-# Raise an error if pass wrong idsglobal_ids = ["a", "bb"]- msg = f"Could not resolve to a node with the global id list of '{global_ids}'."- with pytest.raises(Exception) as exc:+ with pytest.raises(+ GraphQLError, match="Could not resolve to a node with the global id list of"+ ):get_nodes(global_ids, Product)- assert exc.value.args == (msg,)-def test_get_nodes_for_order_with_int_id(order_list):order_models.Order.objects.update(use_old_id=True)diff --git a/saleor/graphql/core/tests/test_scalars.py b/saleor/graphql/core/tests/test_scalars.pyindex b15a7755da..f591198041 100644--- a/saleor/graphql/core/tests/test_scalars.py+++ b/saleor/graphql/core/tests/test_scalars.py@@ -165,7 +165,7 @@ def test_json_scalar_as_correct_variable(get_graphql_content(response)[email protected]("data_value", (True, "string", 1.0, 1))[email protected]("data_value", [True, "string", 1.0, 1])@mock.patch("saleor.plugins.manager.PluginsManager.payment_gateway_initialize_session")def test_json_scalar_as_incorrect_variable(mocked_initialize,@@ -210,7 +210,7 @@ mutation {"""[email protected]("data_value", (True, "string", 1.0, 1))[email protected]("data_value", [True, "string", 1.0, 1])@mock.patch("saleor.plugins.manager.PluginsManager.payment_gateway_initialize_session")def test_json_scalar_as_incorrect_value(mocked_initialize,diff --git a/saleor/graphql/core/tests/test_validators.py b/saleor/graphql/core/tests/test_validators.pyindex 60c71b375b..6a05bf2cd3 100644--- a/saleor/graphql/core/tests/test_validators.py+++ b/saleor/graphql/core/tests/test_validators.py@@ -17,7 +17,7 @@ from ..validators import (@pytest.mark.parametrize(- "value, currency",+ ("value", "currency"),[(Decimal("1.1200"), "USD"),(Decimal("1.12"), "USD"),@@ -37,7 +37,7 @@ def test_validate_price_precision(value, currency):@pytest.mark.parametrize(- "value, currency",+ ("value", "currency"),[(Decimal("1.1212"), "USD"),(Decimal("1.128"), "USD"),@@ -61,7 +61,7 @@ def test_validate_end_is_after_start_raise_error():@pytest.mark.parametrize(- "start_date, end_date",+ ("start_date", "end_date"),[(timezone.now() - timedelta(days=365), timezone.now() + timedelta(days=365)),(timezone.now() + timedelta(days=365), None),diff --git a/saleor/graphql/core/tests/test_view.py b/saleor/graphql/core/tests/test_view.pyindex 9c672215bc..040430b072 100644--- a/saleor/graphql/core/tests/test_view.py+++ b/saleor/graphql/core/tests/test_view.py@@ -78,14 +78,14 @@ def test_graphql_view_query_with_invalid_object_type(assert content["data"]["order"] is None[email protected]("playground_on, status", [(True, 200), (False, 405)])[email protected](("playground_on", "status"), [(True, 200), (False, 405)])def test_graphql_view_get_enabled_or_disabled(client, settings, playground_on, status):settings.PLAYGROUND_ENABLED = playground_onresponse = client.get(API_PATH)assert response.status_code == status[email protected]("method", ("put", "patch", "delete"))[email protected]("method", ["put", "patch", "delete"])def test_graphql_view_not_allowed(method, client):func = getattr(client, method)response = func(API_PATH)diff --git a/saleor/graphql/csv/tests/mutations/test_export_gift_cards.py b/saleor/graphql/csv/tests/mutations/test_export_gift_cards.pyindex f49cf9db5f..c7feffc194 100644--- a/saleor/graphql/csv/tests/mutations/test_export_gift_cards.py+++ b/saleor/graphql/csv/tests/mutations/test_export_gift_cards.py@@ -36,7 +36,7 @@ EXPORT_GIFT_CARDS_MUTATION = """@pytest.mark.parametrize(- "input, called_data",+ ("input", "called_data"),[({@@ -215,7 +215,7 @@ def test_export_gift_cards_mutation_ids_scope_invalid_object_type(@pytest.mark.parametrize(- "input, error_field",+ ("input", "error_field"),[({diff --git a/saleor/graphql/csv/tests/mutations/test_export_products.py b/saleor/graphql/csv/tests/mutations/test_export_products.pyindex 8c179663d1..1abcf55596 100644--- a/saleor/graphql/csv/tests/mutations/test_export_products.py+++ b/saleor/graphql/csv/tests/mutations/test_export_products.py@@ -61,7 +61,7 @@ EXPORT_PRODUCTS_BY_APP_MUTATION = """@pytest.mark.parametrize(- "input, called_data",+ ("input", "called_data"),[({@@ -550,7 +550,7 @@ def test_export_products_mutation_with_channel_ids_invalid_object_type(@pytest.mark.parametrize(- "input, error_field",+ ("input", "error_field"),[({diff --git a/saleor/graphql/csv/tests/queries/test_export_files.py b/saleor/graphql/csv/tests/queries/test_export_files.pyindex 0794a25c9a..1308b41574 100644--- a/saleor/graphql/csv/tests/queries/test_export_files.py+++ b/saleor/graphql/csv/tests/queries/test_export_files.py@@ -57,7 +57,7 @@ SORT_EXPORT_FILES_QUERY = """@pytest.mark.parametrize(- "status_filter, count",+ ("status_filter", "count"),[({"status": JobStatus.SUCCESS.upper()}, 2),({"status": JobStatus.PENDING.upper()}, 2),@@ -87,7 +87,7 @@ def test_filter_export_files_by_status(@pytest.mark.parametrize(- "created_at_filter, count",+ ("created_at_filter", "count"),[({"createdAt": {"gte": "2019-04-10T00:00:00+00:00"}}, 3),({"createdAt": {"lte": "2019-04-10T00:00:00+00:00"}}, 2),@@ -116,7 +116,7 @@ def test_filter_export_files_by_created_at_date(@pytest.mark.parametrize(- "ended_at_filter, count",+ ("ended_at_filter", "count"),[({"updatedAt": {"gte": "2019-04-18T00:00:00+00:00"}}, 3),({"updatedAt": {"lte": "2019-04-18T00:00:00+00:00"}}, 2),diff --git a/saleor/graphql/discount/schema.py b/saleor/graphql/discount/schema.pyindex daa1e45b2a..7e8f038c23 100644--- a/saleor/graphql/discount/schema.py+++ b/saleor/graphql/discount/schema.py@@ -83,7 +83,7 @@ class DiscountQueries(graphene.ObjectType):),description="Look up a sale by ID.",deprecation_reason=(- f"{DEPRECATED_IN_3X_FIELD} " "Use the `promotion` query instead."+ f"{DEPRECATED_IN_3X_FIELD} Use the `promotion` query instead."),permissions=[DiscountPermissions.MANAGE_DISCOUNTS,@@ -105,7 +105,7 @@ class DiscountQueries(graphene.ObjectType):),description="List of the shop's sales.",deprecation_reason=(- f"{DEPRECATED_IN_3X_FIELD} " "Use the `promotions` query instead."+ f"{DEPRECATED_IN_3X_FIELD} Use the `promotions` query instead."),permissions=[DiscountPermissions.MANAGE_DISCOUNTS,diff --git a/saleor/graphql/discount/tests/mutations/test_sale_bulk_delete.py b/saleor/graphql/discount/tests/mutations/test_sale_bulk_delete.pyindex 2771e33960..750c57d628 100644--- a/saleor/graphql/discount/tests/mutations/test_sale_bulk_delete.py+++ b/saleor/graphql/discount/tests/mutations/test_sale_bulk_delete.py@@ -73,9 +73,7 @@ SALE_BULK_DELETE_MUTATION = """"""- "saleor.graphql.discount.mutations." "bulk_mutations.get_webhooks_for_event"-)[email protected]("saleor.graphql.discount.mutations.bulk_mutations.get_webhooks_for_event")@mock.patch("saleor.plugins.manager.PluginsManager.sale_deleted")@mock.patch("saleor.product.tasks.update_products_discounted_prices_for_promotion_task.delay"@@ -117,9 +115,7 @@ def test_delete_sales(assert deleted_webhook_mock.call_count == len(promotion_list)- "saleor.graphql.discount.mutations." "bulk_mutations.get_webhooks_for_event"-)[email protected]("saleor.graphql.discount.mutations.bulk_mutations.get_webhooks_for_event")@mock.patch("saleor.plugins.webhook.plugin.trigger_webhooks_async")def test_delete_sales_triggers_webhook(mocked_webhook_trigger,@@ -154,9 +150,7 @@ def test_delete_sales_triggers_webhook(assert mocked_webhook_trigger.call_count == 3- "saleor.graphql.discount.mutations." "bulk_mutations.get_webhooks_for_event"-)[email protected]("saleor.graphql.discount.mutations.bulk_mutations.get_webhooks_for_event")@mock.patch("saleor.plugins.webhook.plugin.trigger_webhooks_async")def test_delete_sales_with_variants_triggers_webhook(mocked_webhook_trigger,@@ -215,9 +209,7 @@ def test_delete_sales_with_variants_triggers_webhook(assert mocked_webhook_trigger.call_count == 3- "saleor.graphql.discount.mutations." "bulk_mutations.get_webhooks_for_event"-)[email protected]("saleor.graphql.discount.mutations.bulk_mutations.get_webhooks_for_event")@mock.patch("saleor.plugins.manager.PluginsManager.sale_deleted")@mock.patch("saleor.product.tasks.update_products_discounted_prices_for_promotion_task.delay"diff --git a/saleor/graphql/discount/tests/mutations/test_voucher_bulk_delete.py b/saleor/graphql/discount/tests/mutations/test_voucher_bulk_delete.pyindex 48c7f8abbd..2fb922c6bb 100644--- a/saleor/graphql/discount/tests/mutations/test_voucher_bulk_delete.py+++ b/saleor/graphql/discount/tests/mutations/test_voucher_bulk_delete.py@@ -78,9 +78,7 @@ def test_delete_vouchers(staff_api_client, voucher_list, permission_manage_disco).exists()- "saleor.graphql.discount.mutations." "bulk_mutations.get_webhooks_for_event"-)[email protected]("saleor.graphql.discount.mutations.bulk_mutations.get_webhooks_for_event")@mock.patch("saleor.plugins.webhook.plugin.trigger_webhooks_async")def test_delete_vouchers_trigger_webhook(mocked_webhook_trigger,diff --git a/saleor/graphql/discount/tests/queries/test_promotions_filtering.py b/saleor/graphql/discount/tests/queries/test_promotions_filtering.pyindex cfeb59aec5..366939f84d 100644--- a/saleor/graphql/discount/tests/queries/test_promotions_filtering.py+++ b/saleor/graphql/discount/tests/queries/test_promotions_filtering.py@@ -67,7 +67,7 @@ def test_query_promotions_filter_by_ids_empty_values(@pytest.mark.parametrize(- "where, indexes",+ ("where", "indexes"),[({"eq": "Promotion 2"}, [1]),({"eq": "Non-existing"}, []),@@ -100,7 +100,7 @@ def test_query_promotions_filter_by_name(@pytest.mark.parametrize(- "where, indexes",+ ("where", "indexes"),[({@@ -168,7 +168,7 @@ def test_query_promotions_filter_by_end_date(@pytest.mark.parametrize(- "where, indexes",+ ("where", "indexes"),[({@@ -233,7 +233,7 @@ def test_query_promotions_filter_by_start_date(assert names == {promotion_list[index].name for index in indexes}[email protected]("value, indexes", [(True, [0]), (False, [1, 2])])[email protected](("value", "indexes"), [(True, [0]), (False, [1, 2])])def test_query_promotions_filter_by_is_old_sale(value, indexes, promotion_list, staff_api_client, permission_manage_discounts):diff --git a/saleor/graphql/discount/tests/queries/test_promotions_sorting.py b/saleor/graphql/discount/tests/queries/test_promotions_sorting.pyindex 82a28974f0..91087f307c 100644--- a/saleor/graphql/discount/tests/queries/test_promotions_sorting.py+++ b/saleor/graphql/discount/tests/queries/test_promotions_sorting.py@@ -24,7 +24,7 @@ QUERY_PROMOTIONS = """"""[email protected]("direction", ("ASC", "DESC"))[email protected]("direction", ["ASC", "DESC"])def test_sorting_promotions_by_name(direction,staff_api_client,@@ -57,7 +57,7 @@ def test_sorting_promotions_by_name(][email protected]("direction", ("ASC", "DESC"))[email protected]("direction", ["ASC", "DESC"])def test_sorting_promotions_by_end_date(direction,staff_api_client,@@ -90,7 +90,7 @@ def test_sorting_promotions_by_end_date(][email protected]("direction", ("ASC", "DESC"))[email protected]("direction", ["ASC", "DESC"])def test_sorting_promotions_by_start_date(direction,staff_api_client,@@ -125,7 +125,7 @@ def test_sorting_promotions_by_start_date(][email protected]("direction", ("ASC", "DESC"))[email protected]("direction", ["ASC", "DESC"])def test_sorting_promotions_by_created_at(direction,staff_api_client,diff --git a/saleor/graphql/discount/tests/queries/test_sales_filtering.py b/saleor/graphql/discount/tests/queries/test_sales_filtering.pyindex 44dd74eb2d..5d0d1683ab 100644--- a/saleor/graphql/discount/tests/queries/test_sales_filtering.py+++ b/saleor/graphql/discount/tests/queries/test_sales_filtering.py@@ -23,7 +23,7 @@ QUERY_SALES_WITH_FILTER = """@pytest.mark.parametrize(- "sale_filter, start_date, end_date, count",+ ("sale_filter", "start_date", "end_date", "count"),[({"status": "ACTIVE"},@@ -78,7 +78,7 @@ def test_query_sales_with_filter_status(@pytest.mark.parametrize(- "sale_filter, count, sale_type",+ ("sale_filter", "count", "sale_type"),[({"saleType": "PERCENTAGE"}, 1, RewardValueType.PERCENTAGE),({"saleType": "FIXED"}, 2, RewardValueType.FIXED),@@ -125,7 +125,7 @@ def test_query_sales_with_filter_discount_type(@pytest.mark.parametrize(- "sale_filter, count",+ ("sale_filter", "count"),[({"started": {"gte": "2019-04-18T00:00:00+00:00"}}, 1),({"started": {"lte": "2012-01-14T00:00:00+00:00"}}, 1),@@ -175,7 +175,7 @@ def test_query_sales_with_filter_started(@pytest.mark.parametrize(- "sale_filter, count",+ ("sale_filter", "count"),[({"updatedAt": {"gte": "2012-01-14T10:59:00+00:00"}}, 2),({"updatedAt": {"lte": "2012-01-14T12:00:05+00:00"}}, 2),@@ -234,7 +234,7 @@ def test_query_sales_with_filter_updated_at(@pytest.mark.parametrize(- "sale_filter, count",+ ("sale_filter", "count"),[({"search": "Big"}, 1), ({"search": "69"}, 1), ({"search": "FIX"}, 2)],)def test_query_sales_with_filter_search(diff --git a/saleor/graphql/discount/tests/queries/test_sales_pagination.py b/saleor/graphql/discount/tests/queries/test_sales_pagination.pyindex e651cf6a6b..7b6149cb9a 100644--- a/saleor/graphql/discount/tests/queries/test_sales_pagination.py+++ b/saleor/graphql/discount/tests/queries/test_sales_pagination.py@@ -88,7 +88,7 @@ QUERY_SALES_PAGINATION = """@pytest.mark.parametrize(- "sort_by, sales_order",+ ("sort_by", "sales_order"),[({"field": "NAME", "direction": "ASC"}, ["Sale1", "Sale15", "Sale2"]),({"field": "NAME", "direction": "DESC"}, ["Sale4", "Sale3", "Sale2"]),@@ -152,7 +152,7 @@ def test_sales_pagination_with_sorting_and_channel(@pytest.mark.parametrize(- "filter_by, sales_order",+ ("filter_by", "sales_order"),[({"status": "SCHEDULED"}, ["Sale1", "Sale15"]),({"status": "ACTIVE"}, ["Sale2", "Sale3"]),diff --git a/saleor/graphql/discount/tests/queries/test_sales_sorting.py b/saleor/graphql/discount/tests/queries/test_sales_sorting.pyindex b905277f28..1ea6d27b78 100644--- a/saleor/graphql/discount/tests/queries/test_sales_sorting.py+++ b/saleor/graphql/discount/tests/queries/test_sales_sorting.py@@ -114,7 +114,7 @@ def test_sales_with_sorting_and_without_channel(@pytest.mark.parametrize(- "sort_by, sales_order",+ ("sort_by", "sales_order"),[({"field": "VALUE", "direction": "ASC"},@@ -169,7 +169,7 @@ def test_sales_with_sorting_and_channel_USD(@pytest.mark.parametrize(- "sort_by, sales_order",+ ("sort_by", "sales_order"),[({"field": "VALUE", "direction": "ASC"},@@ -262,7 +262,7 @@ QUERY_SALE_WITH_SORT = """@pytest.mark.parametrize(- "sale_sort, result_order",+ ("sale_sort", "result_order"),[({"field": "NAME", "direction": "ASC"}, ["BigSale", "Sale2", "Sale3"]),({"field": "NAME", "direction": "DESC"}, ["Sale3", "Sale2", "BigSale"]),diff --git a/saleor/graphql/discount/tests/queries/test_vouchers_filtering.py b/saleor/graphql/discount/tests/queries/test_vouchers_filtering.pyindex ed3faf3ad7..cd30595c5f 100644--- a/saleor/graphql/discount/tests/queries/test_vouchers_filtering.py+++ b/saleor/graphql/discount/tests/queries/test_vouchers_filtering.py@@ -23,7 +23,7 @@ QUERY_VOUCHERS_WITH_FILTER = """@pytest.mark.parametrize(- "voucher_filter, start_date, end_date, count",+ ("voucher_filter", "start_date", "end_date", "count"),[({"status": "ACTIVE"},@@ -82,7 +82,7 @@ def test_query_vouchers_with_filter_status(@pytest.mark.parametrize(- "voucher_filter, count",+ ("voucher_filter", "count"),[({"timesUsed": {"gte": 1, "lte": 5}}, 1),({"timesUsed": {"lte": 3}}, 2),@@ -117,7 +117,7 @@ def test_query_vouchers_with_filter_times_used(@pytest.mark.parametrize(- "voucher_filter, count",+ ("voucher_filter", "count"),[({"started": {"gte": "2019-04-18T00:00:00+00:00"}}, 1),({"started": {"lte": "2012-01-14T00:00:00+00:00"}}, 1),@@ -165,7 +165,7 @@ def test_query_vouchers_with_filter_started(@pytest.mark.parametrize(- "voucher_filter, count, discount_value_type",+ ("voucher_filter", "count", "discount_value_type"),[({"discountType": "PERCENTAGE"}, 1, DiscountValueType.PERCENTAGE),({"discountType": "FIXED"}, 2, DiscountValueType.FIXED),@@ -206,7 +206,7 @@ def test_query_vouchers_with_filter_discount_type(@pytest.mark.parametrize(- "voucher_filter, count", [({"search": "Big"}, 1), ({"search": "GIFT"}, 2)]+ ("voucher_filter", "count"), [({"search": "Big"}, 1), ({"search": "GIFT"}, 2)])def test_query_vouchers_with_filter_search(voucher_filter,diff --git a/saleor/graphql/discount/tests/queries/test_vouchers_pagination.py b/saleor/graphql/discount/tests/queries/test_vouchers_pagination.pyindex b83deaf3fd..2c93408d0c 100644--- a/saleor/graphql/discount/tests/queries/test_vouchers_pagination.py+++ b/saleor/graphql/discount/tests/queries/test_vouchers_pagination.py@@ -127,7 +127,7 @@ QUERY_VOUCHERS_PAGINATION = """@pytest.mark.parametrize(- "sort_by, vouchers_order",+ ("sort_by", "vouchers_order"),[({"field": "CODE", "direction": "ASC"}, ["Voucher1", "Voucher15", "Voucher2"]),({"field": "CODE", "direction": "DESC"}, ["Voucher4", "Voucher3", "Voucher2"]),@@ -171,7 +171,7 @@ def test_vouchers_pagination_with_sorting(@pytest.mark.parametrize(- "sort_by, vouchers_order",+ ("sort_by", "vouchers_order"),[({"field": "VALUE", "direction": "ASC"}, ["Voucher1", "Voucher15", "Voucher3"]),(@@ -211,7 +211,7 @@ def test_vouchers_pagination_with_sorting_and_channel(@pytest.mark.parametrize(- "filter_by, vouchers_order",+ ("filter_by", "vouchers_order"),[({"status": "SCHEDULED"}, ["Voucher1", "Voucher15"]),({"status": "ACTIVE"}, ["Voucher2", "Voucher3"]),diff --git a/saleor/graphql/discount/tests/queries/test_vouchers_sorting.py b/saleor/graphql/discount/tests/queries/test_vouchers_sorting.pyindex c2a8623c2c..7c70f5e351 100644--- a/saleor/graphql/discount/tests/queries/test_vouchers_sorting.py+++ b/saleor/graphql/discount/tests/queries/test_vouchers_sorting.py@@ -154,7 +154,7 @@ def test_voucher_with_sorting_and_without_channel(@pytest.mark.parametrize(- "sort_by, vouchers_order",+ ("sort_by", "vouchers_order"),[({"field": "VALUE", "direction": "ASC"},@@ -201,7 +201,7 @@ def test_vouchers_with_sorting_and_channel_USD(@pytest.mark.parametrize(- "sort_by, vouchers_order",+ ("sort_by", "vouchers_order"),[({"field": "VALUE", "direction": "ASC"},@@ -278,7 +278,7 @@ def test_vouchers_with_sorting_and_not_existing_channel_asc(@pytest.mark.parametrize(- "filter_by, vouchers_count",+ ("filter_by", "vouchers_count"),[({"status": "ACTIVE"}, 4),({"status": "SCHEDULED"}, 0),@@ -360,7 +360,7 @@ QUERY_VOUCHER_WITH_SORT = """@pytest.mark.parametrize(- "voucher_sort, result_order",+ ("voucher_sort", "result_order"),[({"field": "CODE", "direction": "ASC"},diff --git a/saleor/graphql/giftcard/tests/mutations/test_gift_card_add_note.py b/saleor/graphql/giftcard/tests/mutations/test_gift_card_add_note.pyindex a28275cac6..3629b88ba1 100644--- a/saleor/graphql/giftcard/tests/mutations/test_gift_card_add_note.py+++ b/saleor/graphql/giftcard/tests/mutations/test_gift_card_add_note.py@@ -122,10 +122,10 @@ def test_gift_card_add_note_as_app(@pytest.mark.parametrize("message",- (+ [""," ",- ),+ ],)def test_gift_card_add_note_fail_on_empty_message(message,diff --git a/saleor/graphql/giftcard/tests/queries/test_gift_card.py b/saleor/graphql/giftcard/tests/queries/test_gift_card.pyindex a89ed36ad9..d715a732e6 100644--- a/saleor/graphql/giftcard/tests/queries/test_gift_card.py+++ b/saleor/graphql/giftcard/tests/queries/test_gift_card.py@@ -606,7 +606,7 @@ def test_query_gift_card_bought_event(@pytest.mark.parametrize(- "gift_card_type, count",+ ("gift_card_type", "count"),[(GiftCardEventsEnum.BOUGHT.name, 1),(GiftCardEventsEnum.USED_IN_ORDER.name, 2),diff --git a/saleor/graphql/giftcard/tests/queries/test_gift_card_filtering.py b/saleor/graphql/giftcard/tests/queries/test_gift_card_filtering.pyindex 2cac2df41c..94c35fe10e 100644--- a/saleor/graphql/giftcard/tests/queries/test_gift_card_filtering.py+++ b/saleor/graphql/giftcard/tests/queries/test_gift_card_filtering.py@@ -28,7 +28,7 @@ QUERY_GIFT_CARDS = """@pytest.mark.parametrize(- "filter_value, expected_gift_card_indexes",+ ("filter_value", "expected_gift_card_indexes"),[(["test-tag", "tag"], [0, 2]),(["another-tag"], [1]),@@ -142,7 +142,7 @@ def test_query_filter_gift_cards_by_used_by_user(@pytest.mark.parametrize(- "filter_value, expected_gift_card_indexes",+ ("filter_value", "expected_gift_card_indexes"),[("PLN", [0]), ("USD", [1, 2]), ("EUR", []), ("", [0, 1, 2])],)def test_query_filter_gift_cards_by_currency(@@ -184,7 +184,7 @@ def test_query_filter_gift_cards_by_currency(@pytest.mark.parametrize(- "filter_value, expected_gift_card_indexes",+ ("filter_value", "expected_gift_card_indexes"),[(True, [0]),(False, [1, 2]),@@ -229,7 +229,7 @@ def test_query_filter_gift_cards_by_is_active(@pytest.mark.parametrize(- "filter_value, expected_gift_card_indexes",+ ("filter_value", "expected_gift_card_indexes"),[(True, [2]),(False, [0, 1]),@@ -302,7 +302,7 @@ def test_query_filter_gift_cards_by_current_balance_no_currency_given(@pytest.mark.parametrize(- "filter_value, expected_gift_card_indexes",+ ("filter_value", "expected_gift_card_indexes"),[({"gte": 50}, [2]),({"gte": 0, "lte": 50}, [0, 1]),@@ -382,7 +382,7 @@ def test_query_filter_gift_cards_by_initial_balance_no_currency_given(@pytest.mark.parametrize(- "filter_value, expected_gift_card_indexes",+ ("filter_value", "expected_gift_card_indexes"),[({"gte": 90}, [2]),({"gte": 0, "lte": 50}, [0, 1]),diff --git a/saleor/graphql/giftcard/tests/queries/test_gift_card_search.py b/saleor/graphql/giftcard/tests/queries/test_gift_card_search.pyindex 3ff74f4a69..9032ecc7df 100644--- a/saleor/graphql/giftcard/tests/queries/test_gift_card_search.py+++ b/saleor/graphql/giftcard/tests/queries/test_gift_card_search.py@@ -24,7 +24,7 @@ QUERY_GIFT_CARDS = """@pytest.mark.parametrize(- "search,indexes",+ ("search", "indexes"),[("expiry", [0, 1]), ("[email protected]", [2]), ("banana", [])],)def test_query_gift_cards_with_search(diff --git a/saleor/graphql/giftcard/tests/queries/test_gift_card_sorting.py b/saleor/graphql/giftcard/tests/queries/test_gift_card_sorting.pyindex 68eebd5f01..c38c360fa0 100644--- a/saleor/graphql/giftcard/tests/queries/test_gift_card_sorting.py+++ b/saleor/graphql/giftcard/tests/queries/test_gift_card_sorting.py@@ -25,7 +25,7 @@ QUERY_GIFT_CARDS = """@pytest.mark.parametrize("direction",- ("ASC", "DESC"),+ ["ASC", "DESC"],)def test_sorting_gift_cards_by_current_balance(direction,@@ -95,7 +95,7 @@ def test_sorting_gift_cards_by_current_balance_no_currency_in_filter(@pytest.mark.parametrize("direction",- ("ASC", "DESC"),+ ["ASC", "DESC"],)def test_sorting_gift_cards_by_product(direction,@@ -140,7 +140,7 @@ def test_sorting_gift_cards_by_product(@pytest.mark.parametrize("direction",- ("ASC", "DESC"),+ ["ASC", "DESC"],)def test_sorting_gift_cards_by_used_by(direction,@@ -182,7 +182,7 @@ def test_sorting_gift_cards_by_used_by(@pytest.mark.parametrize("direction",- ("ASC", "DESC"),+ ["ASC", "DESC"],)def test_sorting_gift_cards_by_created_at(direction,diff --git a/saleor/graphql/giftcard/tests/queries/test_gift_card_tags_filtering.py b/saleor/graphql/giftcard/tests/queries/test_gift_card_tags_filtering.pyindex b3738ecf25..98768e8d4d 100644--- a/saleor/graphql/giftcard/tests/queries/test_gift_card_tags_filtering.py+++ b/saleor/graphql/giftcard/tests/queries/test_gift_card_tags_filtering.py@@ -18,7 +18,7 @@ QUERY_GIFT_CARD_TAGS = """@pytest.mark.parametrize(- "value, expected_tag_indexes",+ ("value", "expected_tag_indexes"),[("tag", [0, 1, 2, 3, 4]),("test-tag", [0, 1, 2, 3, 4]),diff --git a/saleor/graphql/invoice/tests/test_invoice_create.py b/saleor/graphql/invoice/tests/test_invoice_create.pyindex 73fb11b11e..044540478e 100644--- a/saleor/graphql/invoice/tests/test_invoice_create.py+++ b/saleor/graphql/invoice/tests/test_invoice_create.py@@ -193,7 +193,7 @@ def test_create_invoice_no_billing_address(@pytest.mark.parametrize(- "status", (OrderStatus.DRAFT, OrderStatus.UNCONFIRMED, OrderStatus.EXPIRED)+ "status", [OrderStatus.DRAFT, OrderStatus.UNCONFIRMED, OrderStatus.EXPIRED])def test_create_invoice_invalid_order_status(status, staff_api_client, permission_group_manage_orders, orderdiff --git a/saleor/graphql/invoice/tests/test_invoice_request.py b/saleor/graphql/invoice/tests/test_invoice_request.pyindex 4e2a89ee91..742d7d32ba 100644--- a/saleor/graphql/invoice/tests/test_invoice_request.py+++ b/saleor/graphql/invoice/tests/test_invoice_request.py@@ -172,7 +172,7 @@ def test_invoice_request_by_app(@pytest.mark.parametrize(- "status", (OrderStatus.DRAFT, OrderStatus.UNCONFIRMED, OrderStatus.EXPIRED)+ "status", [OrderStatus.DRAFT, OrderStatus.UNCONFIRMED, OrderStatus.EXPIRED])def test_invoice_request_invalid_order_status(status, staff_api_client, permission_group_manage_orders, orderdiff --git a/saleor/graphql/menu/tests/mutations/test_menu_item_move.py b/saleor/graphql/menu/tests/mutations/test_menu_item_move.pyindex 18b55cd0d5..0b195ebb06 100644--- a/saleor/graphql/menu/tests/mutations/test_menu_item_move.py+++ b/saleor/graphql/menu/tests/mutations/test_menu_item_move.py@@ -540,7 +540,7 @@ def test_menu_reorder_cannot_assign_to_ancestor(assert response["errors"] == [{"field": "parentId",- "message": "Cannot assign a node as child of " "one of its descendants.",+ "message": "Cannot assign a node as child of one of its descendants.",}]diff --git a/saleor/graphql/menu/tests/queries/test_menu_items.py b/saleor/graphql/menu/tests/queries/test_menu_items.pyindex ab06640d53..0d40011fc6 100644--- a/saleor/graphql/menu/tests/queries/test_menu_items.py+++ b/saleor/graphql/menu/tests/queries/test_menu_items.py@@ -48,7 +48,7 @@ QUERY_MENU_ITEMS_PAGINATION = """@pytest.mark.parametrize(- "sort_by, menu_items_order",+ ("sort_by", "menu_items_order"),[({"field": "NAME", "direction": "ASC"}, ["Item1", "Item2", "Item3"]),({"field": "NAME", "direction": "DESC"}, ["ItemItem2", "ItemItem1", "Item3"]),@@ -81,7 +81,7 @@ def test_menu_items_pagination_with_sorting(@pytest.mark.parametrize(- "filter_by, menu_items_order",+ ("filter_by", "menu_items_order"),[({"search": "ItemItem"}, ["ItemItem1", "ItemItem2"]),({"search": "Item1"}, ["Item1", "ItemItem1"]),diff --git a/saleor/graphql/menu/tests/queries/test_menus.py b/saleor/graphql/menu/tests/queries/test_menus.pyindex e28351fe4c..7cebfdd552 100644--- a/saleor/graphql/menu/tests/queries/test_menus.py+++ b/saleor/graphql/menu/tests/queries/test_menus.py@@ -44,7 +44,7 @@ QUERY_MENUS_PAGINATION = """@pytest.mark.parametrize(- "sort_by, menus_order",+ ("sort_by", "menus_order"),[({"field": "NAME", "direction": "ASC"}, ["footer", "menu1", "menu2"]),({"field": "NAME", "direction": "DESC"}, ["navbar", "menuMenu2", "menuMenu1"]),@@ -77,7 +77,7 @@ def test_menus_pagination_with_sorting(@pytest.mark.parametrize(- "filter_by, menus_order",+ ("filter_by", "menus_order"),[({"search": "menuMenu"}, ["menuMenu1", "menuMenu2"]),({"search": "menu1"}, ["menu1", "menuMenu1"]),diff --git a/saleor/graphql/menu/tests/queries/test_menus_filtering.py b/saleor/graphql/menu/tests/queries/test_menus_filtering.pyindex 106d8f7a25..467fbef031 100644--- a/saleor/graphql/menu/tests/queries/test_menus_filtering.py+++ b/saleor/graphql/menu/tests/queries/test_menus_filtering.py@@ -20,7 +20,7 @@ QUERY_MENU_WITH_FILTER = """@pytest.mark.parametrize(- "menu_filter, count",+ ("menu_filter", "count"),[({"search": "Menu1"}, 1),({"search": "Menu"}, 2),@@ -83,7 +83,7 @@ def test_menus_query_with_slug_list_filter(staff_api_client, permission_manage_m@pytest.mark.parametrize(- "menu_item_filter, count",+ ("menu_item_filter", "count"),[({"search": "MenuItem1"}, 1), ({"search": "MenuItem"}, 2)],)def test_menu_items_query_with_filter(diff --git a/saleor/graphql/menu/tests/queries/test_menus_sorting.py b/saleor/graphql/menu/tests/queries/test_menus_sorting.pyindex 47f85282a3..b8256cb250 100644--- a/saleor/graphql/menu/tests/queries/test_menus_sorting.py+++ b/saleor/graphql/menu/tests/queries/test_menus_sorting.py@@ -17,7 +17,7 @@ QUERY_MENU_WITH_SORT = """@pytest.mark.parametrize(- "menu_sort, result_order",+ ("menu_sort", "result_order"),[# We have "footer" and "navbar" from default saleor configuration({"field": "NAME", "direction": "ASC"}, ["footer", "menu1", "navbar"]),@@ -63,7 +63,7 @@ QUERY_MENU_ITEMS_WITH_SORT = """@pytest.mark.parametrize(- "menu_item_sort, result_order",+ ("menu_item_sort", "result_order"),[({"field": "NAME", "direction": "ASC"}, ["MenuItem1", "MenuItem2"]),({"field": "NAME", "direction": "DESC"}, ["MenuItem2", "MenuItem1"]),diff --git a/saleor/graphql/meta/mutations/base.py b/saleor/graphql/meta/mutations/base.pyindex 7cb98d1b2c..0ecd4926a4 100644--- a/saleor/graphql/meta/mutations/base.py+++ b/saleor/graphql/meta/mutations/base.py@@ -279,4 +279,4 @@ class BaseMetadataMutation(BaseMutation):if isinstance(instance, Promotion) and instance.old_sale_id:instance = ChannelContext(node=instance, channel_slug=None)- return cls(**{"item": instance, "errors": []})+ return cls(item=instance, errors=[])diff --git a/saleor/graphql/meta/tests/queries/test_meta_filters.py b/saleor/graphql/meta/tests/queries/test_meta_filters.pyindex a1edb174c8..04f11f7e7f 100644--- a/saleor/graphql/meta/tests/queries/test_meta_filters.py+++ b/saleor/graphql/meta/tests/queries/test_meta_filters.py@@ -21,7 +21,7 @@ query filterProductsByMetadata ($filter:ProductFilterInput, $channel: String){@pytest.mark.parametrize(- "metadata, total_count",+ ("metadata", "total_count"),[([diff --git a/saleor/graphql/notifications/tests/test_external_notification_query.py b/saleor/graphql/notifications/tests/test_external_notification_query.pyindex f336a10bf8..b2bdc01169 100644--- a/saleor/graphql/notifications/tests/test_external_notification_query.py+++ b/saleor/graphql/notifications/tests/test_external_notification_query.py@@ -49,7 +49,9 @@ query_test_invalid_data = [][email protected]("variables, status_code, message", query_test_invalid_data)+ ("variables", "status_code", "message"), query_test_invalid_data+)def test_external_notification_trigger_query_with_invalid_data(variables,status_code,diff --git a/saleor/graphql/order/tests/deprecated/test_discount_order.py b/saleor/graphql/order/tests/deprecated/test_discount_order.pyindex e594ea3c79..64afd04b6c 100644--- a/saleor/graphql/order/tests/deprecated/test_discount_order.py+++ b/saleor/graphql/order/tests/deprecated/test_discount_order.py@@ -26,7 +26,7 @@ mutation OrderDiscountDelete($discountId: ID!){"""[email protected]("status", (OrderStatus.DRAFT, OrderStatus.UNCONFIRMED))[email protected]("status", [OrderStatus.DRAFT, OrderStatus.UNCONFIRMED])def test_delete_order_discount_from_order_with_old_id(status,draft_order_with_fixed_discount_order,@@ -102,7 +102,7 @@ mutation OrderDiscountUpdate($discountId: ID!, $input: OrderDiscountCommonInput!"""[email protected]("status", (OrderStatus.DRAFT, OrderStatus.UNCONFIRMED))[email protected]("status", [OrderStatus.DRAFT, OrderStatus.UNCONFIRMED])def test_update_percentage_order_discount_by_old_id(status,draft_order_with_fixed_discount_order,diff --git a/saleor/graphql/order/tests/deprecated/test_order.py b/saleor/graphql/order/tests/deprecated/test_order.pyindex 735fe851a7..c402de4564 100644--- a/saleor/graphql/order/tests/deprecated/test_order.py+++ b/saleor/graphql/order/tests/deprecated/test_order.py@@ -92,7 +92,7 @@ ORDER_LINE_DELETE_MUTATION = """"""[email protected]("status", (OrderStatus.DRAFT, OrderStatus.UNCONFIRMED))[email protected]("status", [OrderStatus.DRAFT, OrderStatus.UNCONFIRMED])@patch("saleor.plugins.manager.PluginsManager.draft_order_updated")@patch("saleor.plugins.manager.PluginsManager.order_updated")def test_order_line_remove_by_old_line_id(@@ -150,7 +150,7 @@ ORDER_LINE_UPDATE_MUTATION = """"""[email protected]("status", (OrderStatus.DRAFT, OrderStatus.UNCONFIRMED))[email protected]("status", [OrderStatus.DRAFT, OrderStatus.UNCONFIRMED])@patch("saleor.plugins.manager.PluginsManager.draft_order_updated")@patch("saleor.plugins.manager.PluginsManager.order_updated")def test_order_line_update_by_old_line_id(@@ -578,7 +578,7 @@ mutation OrderLineDiscountUpdate($input: OrderDiscountCommonInput!, $orderLineId"""[email protected]("status", (OrderStatus.DRAFT, OrderStatus.UNCONFIRMED))[email protected]("status", [OrderStatus.DRAFT, OrderStatus.UNCONFIRMED])def test_update_order_line_discount_old_id(status,draft_order_with_fixed_discount_order,diff --git a/saleor/graphql/order/tests/mutations/test_draft_order_create.py b/saleor/graphql/order/tests/mutations/test_draft_order_create.pyindex d6ea802359..cae148c243 100644--- a/saleor/graphql/order/tests/mutations/test_draft_order_create.py+++ b/saleor/graphql/order/tests/mutations/test_draft_order_create.py@@ -1717,7 +1717,7 @@ def test_draft_order_create_with_non_unique_external_reference(assert error["message"] == "Order with this External reference already exists."[email protected]("force_new_line", (True, False))[email protected]("force_new_line", [True, False])def test_draft_order_create_with_custom_price_in_order_line(force_new_line,staff_api_client,diff --git a/saleor/graphql/order/tests/mutations/test_order_bulk_create.py b/saleor/graphql/order/tests/mutations/test_order_bulk_create.pyindex ed09de89d4..470c9978c1 100644--- a/saleor/graphql/order/tests/mutations/test_order_bulk_create.py+++ b/saleor/graphql/order/tests/mutations/test_order_bulk_create.py@@ -412,7 +412,7 @@ def order_bulk_input(}def order_bulk_input_with_multiple_order_lines_and_fulfillments(order_bulk_input,product_variant_list,@@ -1999,7 +1999,7 @@ def test_order_bulk_create_both_voucher_and_voucher_code_given(@pytest.mark.parametrize(- "error_policy,expected_order_count",+ ("error_policy", "expected_order_count"),[(ErrorPolicyEnum.REJECT_EVERYTHING.name, 0),(ErrorPolicyEnum.REJECT_FAILED_ROWS.name, 1),@@ -2749,8 +2749,16 @@ def test_order_bulk_create_error_invalid_quantity(@pytest.mark.parametrize(- "quantity,total_net,total_gross,undiscounted_net,undiscounted_gross,message,code,"- "field",+ (+ "quantity",+ "total_net",+ "total_gross",+ "undiscounted_net",+ "undiscounted_gross",+ "message",+ "code",+ "field",+ ),[(-5,@@ -3213,7 +3221,7 @@ def test_order_bulk_create_error_invoice_invalid_url(@pytest.mark.parametrize(- "value_type,message",+ ("value_type", "message"),[(DiscountValueTypeEnum.FIXED.name,@@ -3299,7 +3307,7 @@ def test_order_bulk_create_user_not_found_but_user_email_provided(@pytest.mark.parametrize(- "status,fulfillment_quantity,is_invalid",+ ("status", "fulfillment_quantity", "is_invalid"),[(OrderStatusEnum.FULFILLED, 5, False),(OrderStatusEnum.UNFULFILLED, 0, False),@@ -3738,7 +3746,7 @@ def test_order_bulk_create_error_negative_order_line_index(@pytest.mark.parametrize(- "status,order_quantity,fulfillment_quantity",+ ("status", "order_quantity", "fulfillment_quantity"),[(OrderStatusEnum.PARTIALLY_FULFILLED.name, 5, 0),(OrderStatusEnum.PARTIALLY_FULFILLED.name, 5, 5),diff --git a/saleor/graphql/order/tests/mutations/test_order_discount.py b/saleor/graphql/order/tests/mutations/test_order_discount.pyindex f0890d4b16..889bfc585e 100644--- a/saleor/graphql/order/tests/mutations/test_order_discount.py+++ b/saleor/graphql/order/tests/mutations/test_order_discount.py@@ -41,7 +41,7 @@ mutation OrderDiscountAdd($orderId: ID!, $input: OrderDiscountCommonInput!){@pytest.mark.parametrize(- "value,value_type",+ ("value", "value_type"),[(Decimal("2222222"), DiscountValueTypeEnum.FIXED.name),(Decimal("101"), DiscountValueTypeEnum.PERCENTAGE.name),@@ -88,7 +88,7 @@ def test_add_fixed_order_discount_order_is_not_draft(assert error["code"] == OrderErrorCode.CANNOT_DISCOUNT.name[email protected]("status", (OrderStatus.DRAFT, OrderStatus.UNCONFIRMED))[email protected]("status", [OrderStatus.DRAFT, OrderStatus.UNCONFIRMED])def test_add_fixed_order_discount_to_order(status, draft_order, staff_api_client, permission_group_manage_orders):@@ -135,7 +135,7 @@ def test_add_fixed_order_discount_to_order(assert discount_data["amount_value"] == str(order_discount.amount.amount)[email protected]("status", (OrderStatus.DRAFT, OrderStatus.UNCONFIRMED))[email protected]("status", [OrderStatus.DRAFT, OrderStatus.UNCONFIRMED])def test_add_percentage_order_discount_to_order(status, draft_order, staff_api_client, permission_group_manage_orders):@@ -168,7 +168,7 @@ def test_add_percentage_order_discount_to_order(errors = data["errors"]assert len(errors) == 0- # Use `net` values in comparison due to that fixture have taxes incluted in+ # Use `net` values in comparison due to that fixture have taxes included in# prices but after recalculation taxes are removed because in tests we# don't use any tax app.assert expected_net_total == order.total.net@@ -295,7 +295,7 @@ mutation OrderDiscountUpdate($discountId: ID!, $input: OrderDiscountCommonInput!"""[email protected]("status", (OrderStatus.DRAFT, OrderStatus.UNCONFIRMED))[email protected]("status", [OrderStatus.DRAFT, OrderStatus.UNCONFIRMED])def test_update_percentage_order_discount_to_order(status,draft_order_with_fixed_discount_order,@@ -358,7 +358,7 @@ def test_update_percentage_order_discount_to_order(@patch("saleor.order.calculations.PluginsManager.calculate_order_shipping")[email protected]("status", (OrderStatus.DRAFT, OrderStatus.UNCONFIRMED))[email protected]("status", [OrderStatus.DRAFT, OrderStatus.UNCONFIRMED])def test_update_fixed_order_discount_to_order(mocked_function,status,@@ -449,7 +449,7 @@ def test_update_order_discount_order_is_not_draft(@pytest.mark.parametrize(- "value,value_type",+ ("value", "value_type"),[(Decimal("2222222"), DiscountValueTypeEnum.FIXED.name),(Decimal("101"), DiscountValueTypeEnum.PERCENTAGE.name),@@ -598,7 +598,7 @@ mutation OrderDiscountDelete($discountId: ID!){"""[email protected]("status", (OrderStatus.DRAFT, OrderStatus.UNCONFIRMED))[email protected]("status", [OrderStatus.DRAFT, OrderStatus.UNCONFIRMED])def test_delete_order_discount_from_order(status,draft_order_with_fixed_discount_order,@@ -765,7 +765,7 @@ mutation OrderLineDiscountUpdate($input: OrderDiscountCommonInput!, $orderLineId"""[email protected]("status", (OrderStatus.DRAFT, OrderStatus.UNCONFIRMED))[email protected]("status", [OrderStatus.DRAFT, OrderStatus.UNCONFIRMED])def test_update_order_line_discount(status,draft_order_with_fixed_discount_order,@@ -925,7 +925,7 @@ def test_update_order_line_discount_by_app(assert discount_data["amount_value"] == str(unit_discount.amount)[email protected]("status", (OrderStatus.DRAFT, OrderStatus.UNCONFIRMED))[email protected]("status", [OrderStatus.DRAFT, OrderStatus.UNCONFIRMED])def test_update_order_line_discount_line_with_discount(status,draft_order_with_fixed_discount_order,@@ -1074,7 +1074,7 @@ mutation OrderLineDiscountRemove($orderLineId: ID!){"""[email protected]("status", (OrderStatus.DRAFT, OrderStatus.UNCONFIRMED))[email protected]("status", [OrderStatus.DRAFT, OrderStatus.UNCONFIRMED])@patch("saleor.plugins.manager.PluginsManager.calculate_order_line_unit")@patch("saleor.plugins.manager.PluginsManager.calculate_order_line_total")def test_delete_discount_from_order_line(diff --git a/saleor/graphql/order/tests/mutations/test_order_line_delete.py b/saleor/graphql/order/tests/mutations/test_order_line_delete.pyindex 3cc6e8316b..bbe8da92f3 100644--- a/saleor/graphql/order/tests/mutations/test_order_line_delete.py+++ b/saleor/graphql/order/tests/mutations/test_order_line_delete.py@@ -89,7 +89,7 @@ def test_order_line_remove_with_back_in_stock_webhook(back_in_stock_webhook_mock.assert_called_once_with(Stock.objects.first())[email protected]("status", (OrderStatus.DRAFT, OrderStatus.UNCONFIRMED))[email protected]("status", [OrderStatus.DRAFT, OrderStatus.UNCONFIRMED])@patch("saleor.plugins.manager.PluginsManager.draft_order_updated")@patch("saleor.plugins.manager.PluginsManager.order_updated")def test_order_line_remove(diff --git a/saleor/graphql/order/tests/mutations/test_order_line_update.py b/saleor/graphql/order/tests/mutations/test_order_line_update.pyindex 2514a51287..18e235640f 100644--- a/saleor/graphql/order/tests/mutations/test_order_line_update.py+++ b/saleor/graphql/order/tests/mutations/test_order_line_update.py@@ -169,7 +169,7 @@ def test_order_line_update_with_back_in_stock_webhook_called_twice_success_scenaproduct_variant_back_in_stock_webhook_mock.assert_called_with(Stock.objects.last())[email protected]("status", (OrderStatus.DRAFT, OrderStatus.UNCONFIRMED))[email protected]("status", [OrderStatus.DRAFT, OrderStatus.UNCONFIRMED])@patch("saleor.plugins.manager.PluginsManager.draft_order_updated")@patch("saleor.plugins.manager.PluginsManager.order_updated")def test_order_line_update(@@ -300,7 +300,7 @@ def test_order_line_update_by_app(assert removed_items_event.user is None[email protected]("status", (OrderStatus.DRAFT, OrderStatus.UNCONFIRMED))[email protected]("status", [OrderStatus.DRAFT, OrderStatus.UNCONFIRMED])def test_order_line_update_without_sku(status,order_with_lines,diff --git a/saleor/graphql/order/tests/mutations/test_order_lines_create.py b/saleor/graphql/order/tests/mutations/test_order_lines_create.pyindex eded334242..6184c4fdbb 100644--- a/saleor/graphql/order/tests/mutations/test_order_lines_create.py+++ b/saleor/graphql/order/tests/mutations/test_order_lines_create.py@@ -128,7 +128,7 @@ def test_order_lines_create_for_variant_with_many_stocks_with_out_of_stock_webho)[email protected]("status", (OrderStatus.DRAFT, OrderStatus.UNCONFIRMED))[email protected]("status", [OrderStatus.DRAFT, OrderStatus.UNCONFIRMED])@patch("saleor.plugins.manager.PluginsManager.draft_order_updated")@patch("saleor.plugins.manager.PluginsManager.order_updated")@patch("saleor.plugins.manager.PluginsManager.product_variant_out_of_stock")@@ -271,7 +271,7 @@ def test_order_lines_create_by_app()[email protected]("status", (OrderStatus.DRAFT, OrderStatus.UNCONFIRMED))[email protected]("status", [OrderStatus.DRAFT, OrderStatus.UNCONFIRMED])@patch("saleor.plugins.manager.PluginsManager.draft_order_updated")@patch("saleor.plugins.manager.PluginsManager.order_updated")@patch("saleor.plugins.manager.PluginsManager.product_variant_out_of_stock")@@ -348,7 +348,7 @@ def test_order_lines_create_with_unavailable_variant(draft_order_updated_webhoook_mock.assert_not_called()[email protected]("status", (OrderStatus.DRAFT, OrderStatus.UNCONFIRMED))[email protected]("status", [OrderStatus.DRAFT, OrderStatus.UNCONFIRMED])def test_order_lines_create_when_some_line_has_deleted_product(status,order_with_lines,@@ -380,7 +380,7 @@ def test_order_lines_create_when_some_line_has_deleted_product(assert data["orderLines"][0]["quantity"] == line.quantity + quantity[email protected]("status", (OrderStatus.DRAFT, OrderStatus.UNCONFIRMED))[email protected]("status", [OrderStatus.DRAFT, OrderStatus.UNCONFIRMED])@patch("saleor.plugins.manager.PluginsManager.draft_order_updated")@patch("saleor.plugins.manager.PluginsManager.order_updated")def test_order_lines_create_with_existing_variant(@@ -425,7 +425,7 @@ def test_order_lines_create_with_existing_variant()[email protected]("status", (OrderStatus.DRAFT, OrderStatus.UNCONFIRMED))[email protected]("status", [OrderStatus.DRAFT, OrderStatus.UNCONFIRMED])@patch("saleor.plugins.manager.PluginsManager.draft_order_updated")@patch("saleor.plugins.manager.PluginsManager.order_updated")def test_order_lines_create_with_same_variant_and_force_new_line(@@ -479,7 +479,7 @@ def test_order_lines_create_with_same_variant_and_force_new_line()[email protected]("status", (OrderStatus.DRAFT, OrderStatus.UNCONFIRMED))[email protected]("status", [OrderStatus.DRAFT, OrderStatus.UNCONFIRMED])@patch("saleor.plugins.manager.PluginsManager.draft_order_updated")@patch("saleor.plugins.manager.PluginsManager.order_updated")def test_order_lines_create_when_variant_already_in_multiple_lines(@@ -531,7 +531,7 @@ def test_order_lines_create_when_variant_already_in_multiple_lines()[email protected]("status", (OrderStatus.DRAFT, OrderStatus.UNCONFIRMED))[email protected]("status", [OrderStatus.DRAFT, OrderStatus.UNCONFIRMED])@patch("saleor.plugins.manager.PluginsManager.draft_order_updated")@patch("saleor.plugins.manager.PluginsManager.order_updated")def test_order_lines_create_variant_on_promotion(@@ -644,7 +644,7 @@ def test_order_lines_create_variant_on_promotion()[email protected]("status", (OrderStatus.DRAFT, OrderStatus.UNCONFIRMED))[email protected]("status", [OrderStatus.DRAFT, OrderStatus.UNCONFIRMED])@patch("saleor.plugins.manager.PluginsManager.draft_order_updated")@patch("saleor.plugins.manager.PluginsManager.order_updated")def test_order_lines_create_with_product_and_variant_not_assigned_to_channel(@@ -679,7 +679,7 @@ def test_order_lines_create_with_product_and_variant_not_assigned_to_channel(draft_order_updated_webhook_mock.assert_not_called()[email protected]("status", (OrderStatus.DRAFT, OrderStatus.UNCONFIRMED))[email protected]("status", [OrderStatus.DRAFT, OrderStatus.UNCONFIRMED])@patch("saleor.plugins.manager.PluginsManager.draft_order_updated")@patch("saleor.plugins.manager.PluginsManager.order_updated")def test_order_lines_create_with_variant_not_assigned_to_channel(@@ -718,7 +718,7 @@ def test_order_lines_create_with_variant_not_assigned_to_channel(@patch("saleor.plugins.manager.PluginsManager.product_variant_out_of_stock")[email protected]("status", (OrderStatus.DRAFT, OrderStatus.UNCONFIRMED))[email protected]("status", [OrderStatus.DRAFT, OrderStatus.UNCONFIRMED])def test_order_lines_create_without_sku(product_variant_out_of_stock_webhook_mock,status,@@ -793,7 +793,7 @@ def test_invalid_order_when_creating_lines(@pytest.mark.parametrize(- "status,force_new_line",+ ("status", "force_new_line"),[(OrderStatus.DRAFT, False), (OrderStatus.UNCONFIRMED, True)],)@patch("saleor.plugins.manager.PluginsManager.draft_order_updated")diff --git a/saleor/graphql/order/tests/mutations/test_order_note_add.py b/saleor/graphql/order/tests/mutations/test_order_note_add.pyindex 826538164e..18188a4865 100644--- a/saleor/graphql/order/tests/mutations/test_order_note_add.py+++ b/saleor/graphql/order/tests/mutations/test_order_note_add.py@@ -77,10 +77,10 @@ def test_order_note_add_as_staff_user(@pytest.mark.parametrize("message",- (+ [""," ",- ),+ ],)@patch("saleor.plugins.manager.PluginsManager.order_updated")def test_order_note_add_fail_on_empty_message(diff --git a/saleor/graphql/order/tests/mutations/test_order_note_update.py b/saleor/graphql/order/tests/mutations/test_order_note_update.pyindex 77c4eefb50..e7d7f49302 100644--- a/saleor/graphql/order/tests/mutations/test_order_note_update.py+++ b/saleor/graphql/order/tests/mutations/test_order_note_update.py@@ -129,10 +129,10 @@ def test_order_note_update_as_app(@pytest.mark.parametrize("message",- (+ [""," ",- ),+ ],)@patch("saleor.plugins.manager.PluginsManager.order_updated")def test_order_note_update_fail_on_empty_message(diff --git a/saleor/graphql/order/tests/mutations/test_order_update_shipping.py b/saleor/graphql/order/tests/mutations/test_order_update_shipping.pyindex ad3e371a16..086364cab9 100644--- a/saleor/graphql/order/tests/mutations/test_order_update_shipping.py+++ b/saleor/graphql/order/tests/mutations/test_order_update_shipping.py@@ -350,7 +350,7 @@ def test_order_update_shipping_no_shipping_address(data = content["data"]["orderUpdateShipping"]assert data["errors"][0]["field"] == "order"assert data["errors"][0]["message"] == (- "Cannot choose a shipping method for an order without" " the shipping address."+ "Cannot choose a shipping method for an order without the shipping address.")@@ -490,7 +490,7 @@ mutation OrderUpdateShipping(@pytest.mark.parametrize(- "input, response_msg",+ ("input", "response_msg"),[({"shippingMethod": ""}, "Shipping method cannot be empty."),({}, "Shipping method must be provided to perform mutation."),diff --git a/saleor/graphql/order/tests/queries/test_draft_order_with_filter.py b/saleor/graphql/order/tests/queries/test_draft_order_with_filter.pyindex 747867a39d..d7c15b56ac 100644--- a/saleor/graphql/order/tests/queries/test_draft_order_with_filter.py+++ b/saleor/graphql/order/tests/queries/test_draft_order_with_filter.py@@ -62,7 +62,7 @@ def test_draft_orders_query_with_filter_search_by_number_with_hash(@pytest.mark.parametrize(- "orders_filter, user_field, user_value",+ ("orders_filter", "user_field", "user_value"),[({"customer": "admin"}, "email", "[email protected]"),({"customer": "John"}, "first_name", "johnny"),@@ -107,7 +107,7 @@ def test_draft_order_query_with_filter_customer_fields(@pytest.mark.parametrize(- "orders_filter, count",+ ("orders_filter", "count"),[({@@ -147,7 +147,7 @@ def test_draft_order_query_with_filter_created(@pytest.mark.parametrize(- "draft_orders_filter, count",+ ("draft_orders_filter", "count"),[({"search": "discount name"}, 2),({"search": "Some other"}, 1),diff --git a/saleor/graphql/order/tests/queries/test_draft_order_with_sort.py b/saleor/graphql/order/tests/queries/test_draft_order_with_sort.pyindex d9fd232675..00ddb62718 100644--- a/saleor/graphql/order/tests/queries/test_draft_order_with_sort.py+++ b/saleor/graphql/order/tests/queries/test_draft_order_with_sort.py@@ -20,7 +20,7 @@ QUERY_DRAFT_ORDER_WITH_SORT = """@pytest.mark.parametrize(- "draft_order_sort, result_order",+ ("draft_order_sort", "result_order"),[({"field": "NUMBER", "direction": "ASC"}, [0, 1, 2]),({"field": "NUMBER", "direction": "DESC"}, [2, 1, 0]),diff --git a/saleor/graphql/order/tests/queries/test_order.py b/saleor/graphql/order/tests/queries/test_order.pyindex 06f7d9d96b..ad9033410a 100644--- a/saleor/graphql/order/tests/queries/test_order.py+++ b/saleor/graphql/order/tests/queries/test_order.py@@ -568,7 +568,7 @@ def test_order_query_customer(api_client):@pytest.mark.parametrize(- "total_authorized, total_charged, expected_status",+ ("total_authorized", "total_charged", "expected_status"),[(Decimal("98.40"), Decimal("0"), OrderAuthorizeStatusEnum.FULL.name),(Decimal("0"), Decimal("98.40"), OrderAuthorizeStatusEnum.FULL.name),@@ -608,7 +608,7 @@ def test_order_query_authorize_status(@pytest.mark.parametrize(- "total_authorized, total_charged, expected_status",+ ("total_authorized", "total_charged", "expected_status"),[(Decimal("10.40"), Decimal("0"), OrderChargeStatusEnum.NONE.name),(Decimal("98.40"), Decimal("0"), OrderChargeStatusEnum.NONE.name),diff --git a/saleor/graphql/order/tests/queries/test_order_tax.py b/saleor/graphql/order/tests/queries/test_order_tax.pyindex a266d4e55a..28491ff929 100644--- a/saleor/graphql/order/tests/queries/test_order_tax.py+++ b/saleor/graphql/order/tests/queries/test_order_tax.py@@ -13,7 +13,7 @@ from ....tests.utils import get_graphql_content@pytest.mark.parametrize(- "fun_to_patch, price_name",+ ("fun_to_patch", "price_name"),[("order_total", "total"),("order_undiscounted_total", "undiscountedTotal"),@@ -82,7 +82,7 @@ ORDER_LINE_PRICE_DATA = OrderTaxedPricesData(@pytest.mark.parametrize(- "fun_to_patch, price_name, expected_price",+ ("fun_to_patch", "price_name", "expected_price"),[("order_line_unit", "unitPrice", ORDER_LINE_PRICE_DATA.price_with_discounts),(@@ -164,7 +164,7 @@ query OrderLineTaxRate($id: ID!) {@pytest.mark.parametrize(- "query, fun_to_patch, path",+ ("query", "fun_to_patch", "path"),[(ORDER_SHIPPING_TAX_RATE_QUERY, "order_shipping_tax_rate", ["shippingTaxRate"]),(ORDER_LINE_TAX_RATE_QUERY, "order_line_tax_rate", ["lines", 0, "taxRate"]),diff --git a/saleor/graphql/order/tests/queries/test_order_with_filter.py b/saleor/graphql/order/tests/queries/test_order_with_filter.pyindex 85046d7351..a78b45c3c3 100644--- a/saleor/graphql/order/tests/queries/test_order_with_filter.py+++ b/saleor/graphql/order/tests/queries/test_order_with_filter.py@@ -253,7 +253,7 @@ def test_order_query_with_filter_gift_card_bought_false(@pytest.mark.parametrize(- "orders_filter, count",+ ("orders_filter", "count"),[({@@ -291,7 +291,7 @@ def test_order_query_with_filter_created(@pytest.mark.parametrize(- "orders_filter, count",+ ("orders_filter", "count"),[({"updatedAt": {"gte": "2012-01-14T10:59:00+00:00"}}, 2),({"updatedAt": {"lte": "2012-01-14T12:00:05+00:00"}}, 2),@@ -334,7 +334,7 @@ def test_order_query_with_filter_updated_at(@pytest.mark.parametrize(- "orders_filter, count, payment_status",+ ("orders_filter", "count", "payment_status"),[({"paymentStatus": "FULLY_CHARGED"}, 1, ChargeStatus.FULLY_CHARGED),({"paymentStatus": "NOT_CHARGED"}, 2, ChargeStatus.NOT_CHARGED),@@ -397,7 +397,7 @@ def test_order_query_with_filter_payment_fully_refunded_not_active(@pytest.mark.parametrize(- "orders_filter, count, status",+ ("orders_filter", "count", "status"),[({"status": "UNFULFILLED"}, 2, OrderStatus.UNFULFILLED),({"status": "UNCONFIRMED"}, 1, OrderStatus.UNCONFIRMED),@@ -432,7 +432,7 @@ def test_order_query_with_filter_status(@pytest.mark.parametrize(- "orders_filter, user_field, user_value",+ ("orders_filter", "user_field", "user_value"),[({"customer": "admin"}, "email", "[email protected]"),({"customer": "John"}, "first_name", "johnny"),@@ -618,7 +618,7 @@ def test_order_query_with_filter_is_preorder_false(@pytest.mark.parametrize(- "orders_filter, count",+ ("orders_filter", "count"),[({"search": "discount name"}, 2),({"search": "Some other"}, 1),@@ -1048,7 +1048,7 @@ def test_order_query_with_filter_search_by_product_sku_multi_order_lines(@pytest.mark.parametrize(- "transaction_data, statuses, expected_count",+ ("transaction_data", "statuses", "expected_count"),[({"authorized_value": Decimal("10")},@@ -1129,7 +1129,7 @@ def test_orders_query_with_filter_authorize_status(@pytest.mark.parametrize(- "transaction_data, statuses, expected_count",+ ("transaction_data", "statuses", "expected_count"),[({"charged_value": Decimal("10")},diff --git a/saleor/graphql/order/tests/queries/test_order_with_sort.py b/saleor/graphql/order/tests/queries/test_order_with_sort.pyindex b8e9663cfd..8bffcfa753 100644--- a/saleor/graphql/order/tests/queries/test_order_with_sort.py+++ b/saleor/graphql/order/tests/queries/test_order_with_sort.py@@ -20,7 +20,7 @@ QUERY_ORDER_WITH_SORT = """@pytest.mark.parametrize(- "order_sort, result_order",+ ("order_sort", "result_order"),[({"field": "NUMBER", "direction": "ASC"}, [0, 1, 2, 3]),({"field": "NUMBER", "direction": "DESC"}, [3, 2, 1, 0]),diff --git a/saleor/graphql/order/tests/queries/test_pagination.py b/saleor/graphql/order/tests/queries/test_pagination.pyindex dc6008abc6..f84bbead5c 100644--- a/saleor/graphql/order/tests/queries/test_pagination.py+++ b/saleor/graphql/order/tests/queries/test_pagination.py@@ -17,7 +17,7 @@ from .....payment import ChargeStatusfrom ....tests.utils import get_graphql_contentdef orders_for_pagination(db, channel_USD):orders = Order.objects.bulk_create([@@ -45,7 +45,7 @@ def orders_for_pagination(db, channel_USD):return ordersdef draft_orders_for_pagination(db, channel_USD):orders = Order.objects.bulk_create([@@ -137,7 +137,7 @@ QUERY_DRAFT_ORDERS_WITH_PAGINATION = """@pytest.mark.parametrize(- "orders_filter, orders_order, expected_total_count",+ ("orders_filter", "orders_order", "expected_total_count"),[({@@ -182,7 +182,7 @@ def test_order_query_pagination_with_filter_created(@pytest.mark.parametrize(- "orders_filter, expected_total_count, payment_status, orders_order",+ ("orders_filter", "expected_total_count", "payment_status", "orders_order"),[({"paymentStatus": "FULLY_CHARGED"}, 1, ChargeStatus.FULLY_CHARGED, [98.4]),({"paymentStatus": "NOT_CHARGED"}, 4, ChargeStatus.NOT_CHARGED, [3.0, 2.0]),@@ -237,7 +237,7 @@ def test_order_query_pagination_with_filter_payment_status(@pytest.mark.parametrize(- "orders_filter, expected_total_count, status, orders_order",+ ("orders_filter", "expected_total_count", "status", "orders_order"),[({"status": "UNFULFILLED"}, 4, OrderStatus.UNFULFILLED, [3.0, 2.0]),({"status": "PARTIALLY_FULFILLED"}, 1, OrderStatus.PARTIALLY_FULFILLED, [0.0]),@@ -274,7 +274,7 @@ def test_order_query_pagination_with_filter_status(@pytest.mark.parametrize(- "orders_filter, user_field, user_value",+ ("orders_filter", "user_field", "user_value"),[({"customer": "admin"}, "email", "[email protected]"),({"customer": "John"}, "first_name", "johnny"),@@ -311,7 +311,7 @@ def test_order_query_pagination_with_filter_customer_fields(@pytest.mark.parametrize(- "orders_filter, user_field, user_value",+ ("orders_filter", "user_field", "user_value"),[({"customer": "admin"}, "email", "[email protected]"),({"customer": "John"}, "first_name", "johnny"),@@ -354,7 +354,7 @@ def test_draft_order_query_pagination_with_filter_customer_fields(@pytest.mark.parametrize(- "orders_filter, expected_total_count, orders_order",+ ("orders_filter", "expected_total_count", "orders_order"),[({@@ -406,7 +406,7 @@ def test_draft_order_query_pagination_with_filter_created(@pytest.mark.parametrize(- "orders_filter, expected_total_count",+ ("orders_filter", "expected_total_count"),[({"search": "discount name"}, 2),({"search": "Some other"}, 1),@@ -488,7 +488,7 @@ def test_orders_query_pagination_with_filter_search(@pytest.mark.parametrize(- "draft_orders_filter, expected_total_count",+ ("draft_orders_filter", "expected_total_count"),[({"search": "discount name"}, 2),({"search": "Some other"}, 1),@@ -604,7 +604,7 @@ def test_draft_orders_query_pagination_with_filter_search_by_number(@pytest.mark.parametrize(- "order_sort, result_order",+ ("order_sort", "result_order"),[({"field": "NUMBER", "direction": "ASC"}, [0, 1]),({"field": "NUMBER", "direction": "DESC"}, [2, 1]),diff --git a/saleor/graphql/order/tests/test_order_payment.py b/saleor/graphql/order/tests/test_order_payment.pyindex d27f9317ce..c9d8f8124d 100644--- a/saleor/graphql/order/tests/test_order_payment.py+++ b/saleor/graphql/order/tests/test_order_payment.py@@ -10,8 +10,8 @@ from ..mutations.utils import try_payment_action@pytest.mark.parametrize(- "requires_amount, mutation_name",- ((True, "orderRefund"), (False, "orderVoid"), (True, "orderCapture")),+ ("requires_amount", "mutation_name"),+ [(True, "orderRefund"), (False, "orderVoid"), (True, "orderCapture")],)def test_clean_payment_without_payment_associated_to_order(staff_api_client,diff --git a/saleor/graphql/order/tests/test_utils.py b/saleor/graphql/order/tests/test_utils.pyindex e8b05777c7..47ec8573d4 100644--- a/saleor/graphql/order/tests/test_utils.py+++ b/saleor/graphql/order/tests/test_utils.py@@ -5,7 +5,7 @@ from ....order.utils import invalidate_order_prices@pytest.mark.parametrize(- "status, invalid_prices",+ ("status", "invalid_prices"),[(OrderStatus.DRAFT, True),(OrderStatus.UNCONFIRMED, True),@@ -25,7 +25,7 @@ def test_invalidate_order_prices_status(order, status, invalid_prices):@pytest.mark.parametrize(- "save, invalid_prices",+ ("save", "invalid_prices"),[(True, True),(False, False),diff --git a/saleor/graphql/page/tests/deprecated/test_page_sorting.py b/saleor/graphql/page/tests/deprecated/test_page_sorting.pyindex ee5cbfe02e..f9e4c843d5 100644--- a/saleor/graphql/page/tests/deprecated/test_page_sorting.py+++ b/saleor/graphql/page/tests/deprecated/test_page_sorting.py@@ -20,7 +20,7 @@ QUERY_PAGE_WITH_SORT = """@pytest.mark.parametrize(- "page_sort, result_order",+ ("page_sort", "result_order"),[({"field": "TITLE", "direction": "ASC"}, ["About", "Page1", "Page2"]),({"field": "TITLE", "direction": "DESC"}, ["Page2", "Page1", "About"]),diff --git a/saleor/graphql/page/tests/queries/test_page_types_sorting_and_filtering.py b/saleor/graphql/page/tests/queries/test_page_types_sorting_and_filtering.pyindex ff1e9176dc..7d8a09911e 100644--- a/saleor/graphql/page/tests/queries/test_page_types_sorting_and_filtering.py+++ b/saleor/graphql/page/tests/queries/test_page_types_sorting_and_filtering.py@@ -18,7 +18,7 @@ PAGE_TYPES_QUERY = """@pytest.mark.parametrize(- "search_value, result_items",+ ("search_value", "result_items"),[("test", [0]), ("page", [0, 1, 2]), ("Example page", [1, 2])],)def test_filter_page_types(@@ -41,7 +41,7 @@ def test_filter_page_types(@pytest.mark.parametrize(- "filter_by, pages_count",+ ("filter_by", "pages_count"),[({"slugs": ["page-type-2", "page-type-3"]}, 2),({"slugs": []}, 3),@@ -66,8 +66,8 @@ def test_filter_page_types_filtering(@pytest.mark.parametrize(- "direction, order_direction",- (("ASC", "name"), ("DESC", "-name")),+ ("direction", "order_direction"),+ [("ASC", "name"), ("DESC", "-name")],)def test_sort_page_types_by_name(direction, order_direction, staff_api_client, page_type_list@@ -89,8 +89,8 @@ def test_sort_page_types_by_name(@pytest.mark.parametrize(- "direction, order_direction",- (("ASC", "slug"), ("DESC", "-slug")),+ ("direction", "order_direction"),+ [("ASC", "slug"), ("DESC", "-slug")],)def test_sort_page_types_by_slug(direction, order_direction, staff_api_client, page_type_list@@ -112,8 +112,8 @@ def test_sort_page_types_by_slug(@pytest.mark.parametrize(- "direction, result_items",- (("ASC", [1, 2]), ("DESC", [2, 1])),+ ("direction", "result_items"),+ [("ASC", [1, 2]), ("DESC", [2, 1])],)def test_filter_and_sort_by_slug_page_types(direction, result_items, staff_api_client, page_type_listdiff --git a/saleor/graphql/page/tests/queries/test_pages.py b/saleor/graphql/page/tests/queries/test_pages.pyindex 3d5a35111f..5c755fc947 100644--- a/saleor/graphql/page/tests/queries/test_pages.py+++ b/saleor/graphql/page/tests/queries/test_pages.py@@ -22,7 +22,7 @@ QUERY_PAGES_WITH_FILTER = """@pytest.mark.parametrize(- "page_filter, count",+ ("page_filter", "count"),[({"search": "Page1"}, 2),({"search": "about"}, 1),@@ -77,7 +77,7 @@ def test_pages_query_with_filter_by_page_type(@pytest.mark.parametrize(- "filter_by, pages_count",+ ("filter_by", "pages_count"),[({"slugs": ["test-url-1"]}, 1),({"slugs": ["test-url-1", "test-url-2"]}, 2),@@ -130,7 +130,7 @@ QUERY_PAGE_WITH_SORT = """@pytest.mark.parametrize(- "page_sort, result_order",+ ("page_sort", "result_order"),[({"field": "TITLE", "direction": "ASC"}, ["About", "Page1", "Page2"]),({"field": "TITLE", "direction": "DESC"}, ["Page2", "Page1", "About"]),diff --git a/saleor/graphql/payment/tests/mutations/test_payment_gateway_initialize.py b/saleor/graphql/payment/tests/mutations/test_payment_gateway_initialize.pyindex 2dfebb9f01..8bcd84b9e6 100644--- a/saleor/graphql/payment/tests/mutations/test_payment_gateway_initialize.py+++ b/saleor/graphql/payment/tests/mutations/test_payment_gateway_initialize.py@@ -455,7 +455,7 @@ def test_for_checkout_with_missing_payment_gateway(checkout = checkout_with_pricesexpected_app_identifier = "app.id"expected_error_msg = (- "Active app with `HANDLE_PAYMENT` permissions or " "app webhook not found."+ "Active app with `HANDLE_PAYMENT` permissions or app webhook not found.")expected_input_data = {"input": "json"}excpected_amount = Decimal(30)@@ -515,7 +515,7 @@ def test_for_order_with_missing_payment_gateway(expected_input_data = {"input": "json"}excpected_amount = Decimal(30)expected_error_msg = (- "Active app with `HANDLE_PAYMENT` permissions or " "app webhook not found."+ "Active app with `HANDLE_PAYMENT` permissions or app webhook not found.")mocked_initialize.return_value = []variables = {@@ -580,7 +580,7 @@ def test_for_checkout_with_multiple_payment_gateways(third_expected_input_data = {"input": "json3"}expected_error_msg = (- "Active app with `HANDLE_PAYMENT` permissions or " "app webhook not found."+ "Active app with `HANDLE_PAYMENT` permissions or app webhook not found.")mocked_initialize.return_value = [@@ -687,7 +687,7 @@ def test_for_order_with_multiple_payment_gateways(third_expected_input_data = {"input": "json3"}expected_error_msg = (- "Active app with `HANDLE_PAYMENT` permissions or " "app webhook not found."+ "Active app with `HANDLE_PAYMENT` permissions or app webhook not found.")mocked_initialize.return_value = [diff --git a/saleor/graphql/payment/tests/mutations/test_payment_gateway_initialize_tokenization.py b/saleor/graphql/payment/tests/mutations/test_payment_gateway_initialize_tokenization.pyindex 32fa39613c..2b1c703856 100644--- a/saleor/graphql/payment/tests/mutations/test_payment_gateway_initialize_tokenization.py+++ b/saleor/graphql/payment/tests/mutations/test_payment_gateway_initialize_tokenization.py@@ -29,7 +29,7 @@ $id: String!, $channel: String!, $data: JSON){@pytest.mark.parametrize(- "expected_input_data, expected_output_data",+ ("expected_input_data", "expected_output_data"),[(None, None),(None, {"foo": "bar1"}),diff --git a/saleor/graphql/payment/tests/mutations/test_payment_method_initialize_tokenization.py b/saleor/graphql/payment/tests/mutations/test_payment_method_initialize_tokenization.pyindex a18603ab69..f514e35284 100644--- a/saleor/graphql/payment/tests/mutations/test_payment_method_initialize_tokenization.py+++ b/saleor/graphql/payment/tests/mutations/test_payment_method_initialize_tokenization.py@@ -35,7 +35,7 @@ $paymentFlowToSupport: TokenizedPaymentFlowEnum!){@pytest.mark.parametrize(- "expected_input_data, expected_output_data",+ ("expected_input_data", "expected_output_data"),[(None, None),(None, {"foo": "bar1"}),diff --git a/saleor/graphql/payment/tests/mutations/test_payment_method_process_tokenization.py b/saleor/graphql/payment/tests/mutations/test_payment_method_process_tokenization.pyindex 2f4691361c..a54566fd2f 100644--- a/saleor/graphql/payment/tests/mutations/test_payment_method_process_tokenization.py+++ b/saleor/graphql/payment/tests/mutations/test_payment_method_process_tokenization.py@@ -30,7 +30,7 @@ $id: String!, $channel: String!, $data: JSON){@pytest.mark.parametrize(- "expected_input_data, expected_output_data",+ ("expected_input_data", "expected_output_data"),[(None, None),(None, {"foo": "bar1"}),diff --git a/saleor/graphql/payment/tests/mutations/test_transaction_create.py b/saleor/graphql/payment/tests/mutations/test_transaction_create.pyindex 11c1ea4839..fad227378b 100644--- a/saleor/graphql/payment/tests/mutations/test_transaction_create.py+++ b/saleor/graphql/payment/tests/mutations/test_transaction_create.py@@ -351,7 +351,7 @@ def test_transaction_create_for_checkout_by_app(@pytest.mark.parametrize(- "amount_field_name, amount_db_field",+ ("amount_field_name", "amount_db_field"),[("amountAuthorized", "authorized_value"),("amountCharged", "charged_value"),@@ -538,7 +538,7 @@ def test_transaction_create_missing_permission_by_app(order_with_lines, app_api_@pytest.mark.parametrize(- "amount_field_name, amount_db_field",+ ("amount_field_name", "amount_db_field"),[("amountAuthorized", "authorized_value"),("amountCharged", "charged_value"),@@ -1049,7 +1049,7 @@ def test_transaction_create_for_checkout_fully_paid(@pytest.mark.parametrize(- "amount_field_name, amount_db_field",+ ("amount_field_name", "amount_db_field"),[("amountAuthorized", "authorized_value"),("amountCharged", "charged_value"),@@ -1237,7 +1237,7 @@ def test_transaction_create_missing_permission_by_staff(@pytest.mark.parametrize(- "amount_field_name, amount_db_field",+ ("amount_field_name", "amount_db_field"),[("amountAuthorized", "authorized_value"),("amountCharged", "charged_value"),diff --git a/saleor/graphql/payment/tests/mutations/test_transaction_event_report.py b/saleor/graphql/payment/tests/mutations/test_transaction_event_report.pyindex 6a410753f2..8ba6faa97d 100644--- a/saleor/graphql/payment/tests/mutations/test_transaction_event_report.py+++ b/saleor/graphql/payment/tests/mutations/test_transaction_event_report.py@@ -1881,7 +1881,7 @@ def test_transaction_event_report_by_app_assign_app_owner(@pytest.mark.parametrize(- "transaction_psp_reference, expected_transaction_psp_reference",+ ("transaction_psp_reference", "expected_transaction_psp_reference"),[(None, "psp_reference_from_event"),("", "psp_reference_from_event"),diff --git a/saleor/graphql/payment/tests/mutations/test_transaction_request_action.py b/saleor/graphql/payment/tests/mutations/test_transaction_request_action.pyindex 4bcddb660a..e961cc490a 100644--- a/saleor/graphql/payment/tests/mutations/test_transaction_request_action.py+++ b/saleor/graphql/payment/tests/mutations/test_transaction_request_action.py@@ -149,7 +149,7 @@ def transaction_request_webhook(permission_manage_payments):@pytest.mark.parametrize(- "charge_amount, expected_called_charge_amount",+ ("charge_amount", "expected_called_charge_amount"),[(Decimal("8.00"), Decimal("8.00")),(None, Decimal("10.00")),@@ -232,7 +232,7 @@ def test_transaction_request_charge_for_order(@pytest.mark.parametrize(- "refund_amount, expected_called_refund_amount",+ ("refund_amount", "expected_called_refund_amount"),[(Decimal("8.00"), Decimal("8.00")),(None, Decimal("10.00")),@@ -449,7 +449,7 @@ def test_transaction_request_cancelation_for_checkout(@pytest.mark.parametrize(- "charge_amount, expected_called_charge_amount",+ ("charge_amount", "expected_called_charge_amount"),[(Decimal("8.00"), Decimal("8.00")),(None, Decimal("10.00")),@@ -526,7 +526,7 @@ def test_transaction_request_charge_for_checkout(@pytest.mark.parametrize(- "refund_amount, expected_called_refund_amount",+ ("refund_amount", "expected_called_refund_amount"),[(Decimal("8.00"), Decimal("8.00")),(None, Decimal("10.00")),diff --git a/saleor/graphql/payment/tests/mutations/test_transaction_update.py b/saleor/graphql/payment/tests/mutations/test_transaction_update.pyindex e9be36e12c..80174875c6 100644--- a/saleor/graphql/payment/tests/mutations/test_transaction_update.py+++ b/saleor/graphql/payment/tests/mutations/test_transaction_update.py@@ -361,7 +361,7 @@ def test_transaction_update_available_actions_by_app(@pytest.mark.parametrize(- "field_name, response_field, db_field_name, value",+ ("field_name", "response_field", "db_field_name", "value"),[("amountAuthorized", "authorizedAmount", "authorized_value", Decimal("12")),("amountCharged", "chargedAmount", "charged_value", Decimal("13")),@@ -818,7 +818,7 @@ def test_transaction_update_for_order_missing_permission_by_app(@pytest.mark.parametrize(- "amount_field_name, amount_db_field",+ ("amount_field_name", "amount_db_field"),[("amountAuthorized", "authorized_value"),("amountCharged", "charged_value"),@@ -1268,7 +1268,7 @@ def test_transaction_update_available_actions_by_staff(@pytest.mark.parametrize(- "field_name, response_field, db_field_name, value",+ ("field_name", "response_field", "db_field_name", "value"),[("amountAuthorized", "authorizedAmount", "authorized_value", Decimal("12")),("amountCharged", "chargedAmount", "charged_value", Decimal("13")),@@ -1681,7 +1681,7 @@ def test_transaction_update_for_order_missing_permission_by_staff(@pytest.mark.parametrize(- "amount_field_name, amount_db_field",+ ("amount_field_name", "amount_db_field"),[("amountAuthorized", "authorized_value"),("amountCharged", "charged_value"),@@ -2097,8 +2097,16 @@ def test_transaction_update_creates_calculation_event(@pytest.mark.parametrize(- "field_name, response_field, db_field_name, value, current_authorized_value, "- "current_charged_value, current_canceled_value, current_refunded_value,",+ (+ "field_name",+ "response_field",+ "db_field_name",+ "value",+ "current_authorized_value",+ "current_charged_value",+ "current_canceled_value",+ "current_refunded_value",+ ),[("amountAuthorized",@@ -2250,16 +2258,6 @@ def test_transaction_update_creates_calculation_event(Decimal("3"),Decimal("4"),),- (- "amountCanceled",- "canceledAmount",- "canceled_value",- Decimal("1"),- Decimal("1"),- Decimal("2"),- Decimal("3"),- Decimal("4"),- ),("amountRefunded","refundedAmount",diff --git a/saleor/graphql/payment/tests/queries/test_payment_sources.py b/saleor/graphql/payment/tests/queries/test_payment_sources.pyindex e3dc8117b3..f6fee8031d 100644--- a/saleor/graphql/payment/tests/queries/test_payment_sources.py+++ b/saleor/graphql/payment/tests/queries/test_payment_sources.py@@ -104,7 +104,8 @@ def test_list_payment_sources(# thenmock_get_source_list.assert_called_once_with(gateway, dummy_customer_id, ANY, None)content = get_graphql_content(response)["data"]["me"]["storedPaymentSources"]- assert content is not None and len(content) == 1+ assert content is not None+ assert len(content) == 1assert content[0] == {"gateway": gateway,"paymentMethodId": "payment-method-id",diff --git a/saleor/graphql/payment/tests/queries/test_transaction.py b/saleor/graphql/payment/tests/queries/test_transaction.pyindex 1452fa9fb2..25cba0ef75 100644--- a/saleor/graphql/payment/tests/queries/test_transaction.py+++ b/saleor/graphql/payment/tests/queries/test_transaction.py@@ -437,7 +437,7 @@ def test_transaction_create_by_user_query_no_permission(@pytest.mark.parametrize(- "db_field, api_field",+ ("db_field", "api_field"),[("authorize_pending_value", "authorizePendingAmount"),("charge_pending_value", "chargePendingAmount"),diff --git a/saleor/graphql/plugins/tests/queries/test_plugin.py b/saleor/graphql/plugins/tests/queries/test_plugin.pyindex f5767d4f08..856baffcc3 100644--- a/saleor/graphql/plugins/tests/queries/test_plugin.py+++ b/saleor/graphql/plugins/tests/queries/test_plugin.py@@ -47,7 +47,7 @@ PLUGIN_QUERY = """@pytest.mark.parametrize(- "password, expected_password, api_key, expected_api_key",+ ("password", "expected_password", "api_key", "expected_api_key"),[(None, None, None, None),("ABCDEFGHIJ", "", "123456789", "6789"),@@ -98,7 +98,7 @@ def test_query_plugin_hides_secret_fields(@pytest.mark.parametrize(- "password, expected_password, api_key, expected_api_key",+ ("password", "expected_password", "api_key", "expected_api_key"),[(None, None, None, None),("ABCDEFGHIJ", "", "123456789", "6789"),diff --git a/saleor/graphql/plugins/tests/queries/test_plugins.py b/saleor/graphql/plugins/tests/queries/test_plugins.pyindex 472c0673df..a6fbcf593e 100644--- a/saleor/graphql/plugins/tests/queries/test_plugins.py+++ b/saleor/graphql/plugins/tests/queries/test_plugins.py@@ -138,7 +138,14 @@ def test_query_plugin_configurations_for_channel_configurations(@pytest.mark.parametrize(- "password, expected_password, api_key, expected_api_key, cert, expected_cert",+ (+ "password",+ "expected_password",+ "api_key",+ "expected_api_key",+ "cert",+ "expected_cert",+ ),[(None, None, None, None, None, None),("ABCDEFGHIJ", "", "123456789", "6789", "long text\n with new\n lines", "ines"),@@ -194,7 +201,14 @@ def test_query_plugins_hides_secret_fields(@pytest.mark.parametrize(- "password, expected_password, api_key, expected_api_key, cert, expected_cert",+ (+ "password",+ "expected_password",+ "api_key",+ "expected_api_key",+ "cert",+ "expected_cert",+ ),[(None, None, None, None, None, None),("ABCDEFGHIJ", "", "123456789", "6789", "long text\n with new\n lines", "ines"),@@ -264,7 +278,7 @@ def test_query_plugin_configurations_as_customer_user(user_api_client, settings)@pytest.mark.parametrize(- "plugin_filter_fields, count",+ ("plugin_filter_fields", "count"),[({"search": "PluginSample"}, 1),({"search": "description"}, 2),@@ -333,7 +347,7 @@ QUERY_PLUGIN_WITH_SORT = """@pytest.mark.parametrize(- "plugin_sort, result_order",+ ("plugin_sort", "result_order"),[({"field": "NAME", "direction": "ASC"},diff --git a/saleor/graphql/plugins/tests/test_mutation_plugin_update.py b/saleor/graphql/plugins/tests/test_mutation_plugin_update.pyindex 427be29917..ac6c34620c 100644--- a/saleor/graphql/plugins/tests/test_mutation_plugin_update.py+++ b/saleor/graphql/plugins/tests/test_mutation_plugin_update.py@@ -69,7 +69,7 @@ PLUGIN_UPDATE_MUTATION = """@pytest.mark.parametrize(- "active, updated_configuration_item",+ ("active", "updated_configuration_item"),[(True, {"name": "Username", "value": "user"}),(False, {"name": "Username", "value": "[email protected]"}),diff --git a/saleor/graphql/product/tests/deprecated/test_collection_sorting.py b/saleor/graphql/product/tests/deprecated/test_collection_sorting.pyindex 16b76df78f..fa34984ba8 100644--- a/saleor/graphql/product/tests/deprecated/test_collection_sorting.py+++ b/saleor/graphql/product/tests/deprecated/test_collection_sorting.py@@ -71,6 +71,7 @@ def collections_for_sorting_with_channels(channel_USD, channel_PLN):),])+ return collectionsQUERY_COLLECTIONS_WITH_SORTING_AND_FILTERING = """@@ -120,7 +121,7 @@ def test_collections_with_sorting_and_without_channel(@pytest.mark.parametrize(- "sort_by, collections_order",+ ("sort_by", "collections_order"),[({"field": "PUBLICATION_DATE", "direction": "ASC"},@@ -159,7 +160,7 @@ def test_collections_with_sorting_and_channel_USD(@pytest.mark.parametrize(- "sort_by, collections_order",+ ("sort_by", "collections_order"),[({"field": "PUBLICATION_DATE", "direction": "ASC"},diff --git a/saleor/graphql/product/tests/deprecated/test_product_sorting.py b/saleor/graphql/product/tests/deprecated/test_product_sorting.pyindex 37475f7899..a07e0954e8 100644--- a/saleor/graphql/product/tests/deprecated/test_product_sorting.py+++ b/saleor/graphql/product/tests/deprecated/test_product_sorting.py@@ -28,8 +28,8 @@ query Products($sortBy: ProductOrder, $channel: String) {@freeze_time("2020-03-18 12:00:00")@pytest.mark.parametrize(- "direction, order_direction",- (("ASC", "publication_date"), ("DESC", "-publication_date")),+ ("direction", "order_direction"),+ [("ASC", "publication_date"), ("DESC", "-publication_date")],)def test_sort_products_by_publication_date(direction, order_direction, api_client, product_list, channel_USDdiff --git a/saleor/graphql/product/tests/mutations/test_product_create.py b/saleor/graphql/product/tests/mutations/test_product_create.pyindex e014f5c4ca..2b2f3423a9 100644--- a/saleor/graphql/product/tests/mutations/test_product_create.py+++ b/saleor/graphql/product/tests/mutations/test_product_create.py@@ -2221,7 +2221,7 @@ def test_create_product_no_values_given(@pytest.mark.parametrize(- "value, expected_name, expected_slug",+ ("value", "expected_name", "expected_slug"),[(20.1, "20.1", "20_1"), (20, "20", "20"), ("1", "1", "1")],)def test_create_product_with_numeric_attribute_new_attribute_value(@@ -2641,8 +2641,8 @@ mutation createProduct(@pytest.mark.parametrize(- "weight, expected_weight_value",- (+ ("weight", "expected_weight_value"),+ [("0", 0),(0, 0),(11.11, 11.11),@@ -2651,7 +2651,7 @@ mutation createProduct(({"value": 11.11, "unit": "kg"}, 11.11),({"value": 11, "unit": "g"}, 0.011),({"value": "1", "unit": "ounce"}, 0.028),- ),+ ],)def test_create_product_with_weight_variable(weight,@@ -2684,8 +2684,8 @@ def test_create_product_with_weight_variable(@pytest.mark.parametrize(- "weight, expected_weight_value",- (+ ("weight", "expected_weight_value"),+ [("0", 0),(0, 0),("11.11", 11.11),@@ -2694,7 +2694,7 @@ def test_create_product_with_weight_variable(('{value: 11.11, unit: "kg"}', 11.11),('{value: 11, unit: "g"}', 0.011),('{value: "1", unit: "ounce"}', 0.028),- ),+ ],)def test_create_product_with_weight_input(weight,diff --git a/saleor/graphql/product/tests/mutations/test_product_type_create.py b/saleor/graphql/product/tests/mutations/test_product_type_create.pyindex b9961f70c8..3e0adfdb2d 100644--- a/saleor/graphql/product/tests/mutations/test_product_type_create.py+++ b/saleor/graphql/product/tests/mutations/test_product_type_create.py@@ -402,13 +402,13 @@ def test_create_product_type_with_boolean_attribute(@pytest.mark.parametrize(- "input_slug, expected_slug",- (+ ("input_slug", "expected_slug"),+ [("test-slug", "test-slug"),(None, "test-product-type"),("", "test-product-type"),("わたし-わ-にっぽん-です", "わたし-わ-にっぽん-です"),- ),+ ],)def test_create_product_type_with_given_slug(staff_api_client,diff --git a/saleor/graphql/product/tests/mutations/test_product_type_update.py b/saleor/graphql/product/tests/mutations/test_product_type_update.pyindex 03b817069f..f85b023f03 100644--- a/saleor/graphql/product/tests/mutations/test_product_type_update.py+++ b/saleor/graphql/product/tests/mutations/test_product_type_update.py@@ -166,7 +166,7 @@ UPDATE_PRODUCT_TYPE_SLUG_MUTATION = """@pytest.mark.parametrize(- "input_slug, expected_slug, error_message",+ ("input_slug", "expected_slug", "error_message"),[("test-slug", "test-slug", None),("", "", "Slug value cannot be blank."),@@ -233,7 +233,7 @@ def test_update_product_type_slug_exists(@pytest.mark.parametrize(- "input_slug, expected_slug, input_name, error_message, error_field",+ ("input_slug", "expected_slug", "input_name", "error_message", "error_field"),[("test-slug", "test-slug", "New name", None, None),("", "", "New name", "Slug value cannot be blank.", "slug"),diff --git a/saleor/graphql/product/tests/mutations/test_product_update.py b/saleor/graphql/product/tests/mutations/test_product_update.pyindex 814396d90c..54165ce6df 100644--- a/saleor/graphql/product/tests/mutations/test_product_update.py+++ b/saleor/graphql/product/tests/mutations/test_product_update.py@@ -1785,7 +1785,7 @@ UPDATE_PRODUCT_SLUG_MUTATION = """@pytest.mark.parametrize(- "input_slug, expected_slug, error_message",+ ("input_slug", "expected_slug", "error_message"),[("test-slug", "test-slug", None),("", "", "Slug value cannot be blank."),@@ -1849,7 +1849,7 @@ def test_update_product_slug_exists(@pytest.mark.parametrize(- "input_slug, expected_slug, input_name, error_message, error_field",+ ("input_slug", "expected_slug", "input_name", "error_message", "error_field"),[("test-slug", "test-slug", "New name", None, None),("", "", "New name", "Slug value cannot be blank.", "slug"),@@ -2695,7 +2695,7 @@ def test_update_product_with_selectable_attribute_by_both_id_and_value(@pytest.mark.parametrize(- "value,expected_result",+ ("value", "expected_result"),[("", AttributeInputErrors.ERROR_NO_VALUE_GIVEN),(" ", AttributeInputErrors.ERROR_BLANK_VALUE),diff --git a/saleor/graphql/product/tests/mutations/test_product_variant_update.py b/saleor/graphql/product/tests/mutations/test_product_variant_update.pyindex 1326e47976..f0e8805521 100644--- a/saleor/graphql/product/tests/mutations/test_product_variant_update.py+++ b/saleor/graphql/product/tests/mutations/test_product_variant_update.py@@ -2009,11 +2009,11 @@ def test_update_product_variant_change_attribute_values_ordering(@pytest.mark.parametrize(- "values, message, code",- (+ ("values", "message", "code"),+ [(["one", "two"], "Attribute must take only one value.", "INVALID"),([" "], "Attribute values cannot be blank.", "REQUIRED"),- ),+ ],)def test_update_product_variant_requires_values(staff_api_client,diff --git a/saleor/graphql/product/tests/queries/test_product_query.py b/saleor/graphql/product/tests/queries/test_product_query.pyindex 0ba4c3761e..e17a022c0f 100644--- a/saleor/graphql/product/tests/queries/test_product_query.py+++ b/saleor/graphql/product/tests/queries/test_product_query.py@@ -1409,7 +1409,7 @@ QUERY_GET_PRODUCT_VARIANTS_PRICING = """@pytest.mark.parametrize(- "variant_price_amount, api_variant_price",+ ("variant_price_amount", "api_variant_price"),[(200, 200), (0, 0)],)def test_product_variant_price(@@ -2047,8 +2047,8 @@ QUERY_PRODUCT_WITH_VARIANT = """@pytest.mark.parametrize(- "variant_id, sku, result",- ((False, "123", "123"), (True, None, "123")),+ ("variant_id", "sku", "result"),+ [(False, "123", "123"), (True, None, "123")],)def test_product_variant_field_filtering(staff_api_client,diff --git a/saleor/graphql/product/tests/queries/test_product_types_query.py b/saleor/graphql/product/tests/queries/test_product_types_query.pyindex f22c4e8f7d..3c10ef7242 100644--- a/saleor/graphql/product/tests/queries/test_product_types_query.py+++ b/saleor/graphql/product/tests/queries/test_product_types_query.py@@ -35,7 +35,7 @@ def test_product_types(user_api_client, product_type, channel_USD):@pytest.mark.parametrize(- "product_type_filter, count",+ ("product_type_filter", "count"),[({"configurable": "CONFIGURABLE"}, 2), # has_variants({"configurable": "SIMPLE"}, 1), # !has_variants@@ -114,7 +114,7 @@ QUERY_PRODUCT_TYPES_WITH_SORT = """@pytest.mark.parametrize(- "product_type_sort, result_order",+ ("product_type_sort", "result_order"),[({"field": "NAME", "direction": "ASC"}, ["Digital", "Subscription", "Tools"]),({"field": "NAME", "direction": "DESC"}, ["Tools", "Subscription", "Digital"]),@@ -217,13 +217,13 @@ QUERY_FILTER_PRODUCT_TYPES = """@pytest.mark.parametrize(- "search, expected_names",- (+ ("search", "expected_names"),+ [("", ["The best juices", "The best beers", "The worst beers"]),("best", ["The best juices", "The best beers"]),("worst", ["The worst beers"]),("average", []),- ),+ ],)def test_filter_product_types_by_custom_search_value(api_client, search, expected_namesdiff --git a/saleor/graphql/product/tests/queries/test_products_query.py b/saleor/graphql/product/tests/queries/test_products_query.pyindex 79e07015ef..a93db37191 100644--- a/saleor/graphql/product/tests/queries/test_products_query.py+++ b/saleor/graphql/product/tests/queries/test_products_query.py@@ -1226,7 +1226,7 @@ PRODUCT_SEARCH_QUERY = """@pytest.mark.parametrize(- "search, indexes",+ ("search", "indexes"),[("small", [2]),("big", [0, 1]),diff --git a/saleor/graphql/product/tests/queries/test_products_query_with_filter.py b/saleor/graphql/product/tests/queries/test_products_query_with_filter.pyindex 62fcf761f7..d56a233f55 100644--- a/saleor/graphql/product/tests/queries/test_products_query_with_filter.py+++ b/saleor/graphql/product/tests/queries/test_products_query_with_filter.py@@ -86,7 +86,7 @@ def test_products_query_with_filter_attributes(@pytest.mark.parametrize(- "gte, lte, expected_products_index",+ ("gte", "lte", "expected_products_index"),[(None, 8, [1, 2]),(0, 8, [1, 2]),@@ -184,7 +184,7 @@ def test_products_query_with_filter_numeric_attributes(@pytest.mark.parametrize(- "filter_value, expected_products_index",+ ("filter_value", "expected_products_index"),[(False, [0, 1]),(True, [0]),@@ -1634,7 +1634,7 @@ def test_products_query_with_filter_stock_availability_only_stock_in_cc_warehous@pytest.mark.parametrize(- "quantity_input, warehouse_indexes, count, indexes_of_products_in_result",+ ("quantity_input", "warehouse_indexes", "count", "indexes_of_products_in_result"),[({"lte": "80", "gte": "20"}, [1, 2], 1, [1]),({"lte": "120", "gte": "40"}, [1, 2], 1, [0]),diff --git a/saleor/graphql/product/tests/queries/test_products_query_with_where.py b/saleor/graphql/product/tests/queries/test_products_query_with_where.pyindex ef78d8c625..3fd5a9f2fc 100644--- a/saleor/graphql/product/tests/queries/test_products_query_with_where.py+++ b/saleor/graphql/product/tests/queries/test_products_query_with_where.py@@ -75,7 +75,7 @@ def test_product_filter_by_ids_empty_list(api_client, product_list, channel_USD)@pytest.mark.parametrize(- "where, indexes",+ ("where", "indexes"),[({"eq": "Test product 1"}, [0]),({"eq": "Non-existing"}, []),@@ -103,7 +103,7 @@ def test_product_filter_by_name(where, indexes, api_client, product_list, channe@pytest.mark.parametrize(- "where, indexes",+ ("where", "indexes"),[({"eq": "test-product-a"}, [0]),({"eq": "non-existing"}, []),@@ -357,7 +357,7 @@ def test_product_filter_by_none_as_collection(@pytest.mark.parametrize(- "where, indexes",+ ("where", "indexes"),[({"isAvailable": True}, [0, 2]),({"isAvailable": False}, [1]),@@ -388,7 +388,7 @@ def test_product_filter_by_is_available(@pytest.mark.parametrize(- "where, indexes",+ ("where", "indexes"),[({"isPublished": True}, [0, 2]),({"isPublished": False}, []),@@ -419,7 +419,7 @@ def test_product_filter_by_is_published(@pytest.mark.parametrize(- "where, indexes",+ ("where", "indexes"),[({"isVisibleInListing": True}, [0, 2]),({"isVisibleInListing": False}, []),@@ -450,7 +450,7 @@ def test_product_filter_by_is_visible_in_listing(@pytest.mark.parametrize(- "where, indexes",+ ("where", "indexes"),[({"hasCategory": True}, [0, 2]),({"hasCategory": False}, [1]),@@ -579,7 +579,7 @@ def test_product_filter_by_none_as_available_from(@pytest.mark.parametrize(- "where, indexes",+ ("where", "indexes"),[({"price": {"range": {"gte": 0, "lte": 50}}}, [0, 1, 2]),({"price": {"range": {"gte": 10, "lte": 20}}}, [0, 1]),@@ -613,7 +613,7 @@ def test_product_filter_by_variant_price(@pytest.mark.parametrize(- "where, indexes",+ ("where", "indexes"),[({"minimalPrice": {"range": {"gte": 0, "lte": 50}}}, [0, 1, 2]),({"minimalPrice": {"range": {"gte": 10, "lte": 20}}}, [0, 1]),@@ -730,7 +730,7 @@ def test_products_filter_by_attributes_empty_list(@pytest.mark.parametrize(- "values_range, indexes",+ ("values_range", "indexes"),[({"lte": 8}, [1, 2]),({"gte": 0, "lte": 8}, [1, 2]),@@ -802,7 +802,7 @@ def test_products_filter_by_numeric_attributes(assert returned_slugs == {product_list[index].slug for index in indexes}[email protected]("filter_value, indexes", [(False, [0, 1]), (True, [0])])[email protected](("filter_value", "indexes"), [(False, [0, 1]), (True, [0])])def test_products_filter_by_boolean_attributes(filter_value,indexes,@@ -1270,7 +1270,7 @@ def test_products_filter_by_non_existing_attribute(@pytest.mark.parametrize(- "where, indexes",+ ("where", "indexes"),[({"stockAvailability": "OUT_OF_STOCK"}, [0, 1, 2]),({"stockAvailability": "IN_STOCK"}, [3]),@@ -1459,7 +1459,7 @@ def test_products_filter_by_stock_availability_only_stock_in_cc_warehouse(@pytest.mark.parametrize(- "quantity_input, warehouse_indexes, count, indexes_of_products_in_result",+ ("quantity_input", "warehouse_indexes", "count", "indexes_of_products_in_result"),[({"lte": "80", "gte": "20"}, [1, 2], 1, [1]),({"lte": "120", "gte": "40"}, [1, 2], 1, [0]),@@ -1599,7 +1599,7 @@ def test_products_filter_by_empty_warehouse_ids(assert len(products_data) == 0[email protected]("filter,index", [(False, 0), (True, 1)])[email protected](("filter", "index"), [(False, 0), (True, 1)])def test_products_filter_by_gift_card(filter,index,@@ -1644,7 +1644,7 @@ def test_products_filter_by_none_as_gift_card(assert len(products) == 0[email protected]("filter,index", [(False, 0), (True, 1)])[email protected](("filter", "index"), [(False, 0), (True, 1)])def test_products_query_with_filter_has_preordered_variants(filter,index,diff --git a/saleor/graphql/product/tests/queries/test_variant_query.py b/saleor/graphql/product/tests/queries/test_variant_query.pyindex 2e7edab247..af87ee0be7 100644--- a/saleor/graphql/product/tests/queries/test_variant_query.py+++ b/saleor/graphql/product/tests/queries/test_variant_query.py@@ -614,8 +614,8 @@ def test_get_variant_with_sorted_attribute_values(@pytest.mark.parametrize(- "field, is_nested",- (("digitalContent", True), ("quantityOrdered", False)),+ ("field", "is_nested"),+ [("digitalContent", True), ("quantityOrdered", False)],)def test_variant_restricted_fields_permissions(staff_api_client,diff --git a/saleor/graphql/product/tests/test_attributes.py b/saleor/graphql/product/tests/test_attributes.pyindex cd75e8ec1f..33acdedd75 100644--- a/saleor/graphql/product/tests/test_attributes.py+++ b/saleor/graphql/product/tests/test_attributes.py@@ -51,7 +51,7 @@ QUERY_PRODUCT_AND_VARIANTS_ATTRIBUTES = """"""[email protected]("is_staff", (False, True))[email protected]("is_staff", [False, True])def test_resolve_attributes_with_hidden(user_api_client,staff_api_client,@@ -516,13 +516,13 @@ def test_assign_product_attribute_having_variant_selection(@pytest.mark.parametrize(- "product_type_attribute_type, gql_attribute_type",- (+ ("product_type_attribute_type", "gql_attribute_type"),+ [(ProductAttributeType.PRODUCT, ProductAttributeType.VARIANT),(ProductAttributeType.VARIANT, ProductAttributeType.PRODUCT),(ProductAttributeType.PRODUCT, ProductAttributeType.PRODUCT),(ProductAttributeType.VARIANT, ProductAttributeType.VARIANT),- ),+ ],)def test_assign_attribute_to_product_type_having_already_that_attribute(staff_api_client,@@ -1212,11 +1212,11 @@ def test_sort_attributes_within_product_type_invalid_id(@pytest.mark.parametrize(- "attribute_type, relation_field, backref_field",- (+ ("attribute_type", "relation_field", "backref_field"),+ [("VARIANT", "variant_attributes", "attributevariant"),("PRODUCT", "product_attributes", "attributeproduct"),- ),+ ],)def test_sort_attributes_within_product_type(staff_api_client,diff --git a/saleor/graphql/product/tests/test_category.py b/saleor/graphql/product/tests/test_category.pyindex 829affb69d..07d0a0795d 100644--- a/saleor/graphql/product/tests/test_category.py+++ b/saleor/graphql/product/tests/test_category.py@@ -532,13 +532,13 @@ def test_category_create_trigger_webhook(@pytest.mark.parametrize(- "input_slug, expected_slug",- (+ ("input_slug", "expected_slug"),+ [("test-slug", "test-slug"),(None, "test-category"),("", "test-category"),("わたし-わ-にっぽん-です", "わたし-わ-にっぽん-です"),- ),+ ],)def test_create_category_with_given_slug(staff_api_client, permission_manage_products, input_slug, expected_slug@@ -1019,7 +1019,7 @@ UPDATE_CATEGORY_SLUG_MUTATION = """@pytest.mark.parametrize(- "input_slug, expected_slug, error_message",+ ("input_slug", "expected_slug", "error_message"),[("test-slug", "test-slug", None),("", "", "Slug value cannot be blank."),@@ -1083,7 +1083,7 @@ def test_update_category_slug_exists(@pytest.mark.parametrize(- "input_slug, expected_slug, input_name, error_message, error_field",+ ("input_slug", "expected_slug", "input_name", "error_message", "error_field"),[("test-slug", "test-slug", "New name", None, None),("", "", "New name", "Slug value cannot be blank.", "slug"),@@ -1738,7 +1738,7 @@ QUERY_CATEGORIES_WITH_SORT = """@pytest.mark.parametrize(- "category_sort, result_order",+ ("category_sort", "result_order"),[({"field": "NAME", "direction": "ASC"},@@ -1818,7 +1818,7 @@ def test_categories_query_with_sort(@pytest.mark.parametrize(- "category_filter, count",+ ("category_filter", "count"),[({"search": "slug_"}, 4),({"search": "Category1"}, 1),diff --git a/saleor/graphql/product/tests/test_category_filtering.py b/saleor/graphql/product/tests/test_category_filtering.pyindex ca1651fb57..32015fb126 100644--- a/saleor/graphql/product/tests/test_category_filtering.py+++ b/saleor/graphql/product/tests/test_category_filtering.py@@ -48,7 +48,7 @@ QUERY_CATEGORIES_WITH_FILTERING = """@pytest.mark.parametrize(- "filter_by, categories_count",+ ("filter_by", "categories_count"),[({"slugs": ["category1"]}, 1),({"slugs": ["category2", "category3"]}, 2),@@ -77,7 +77,7 @@ def test_categories_with_filtering(@pytest.mark.parametrize(- "filter_by, categories_count",+ ("filter_by", "categories_count"),[({"updatedAt": {"gte": "2012-01-14T10:59:00+00:00"}}, 3),({"updatedAt": {"lte": "2012-01-14T12:00:05+00:00"}}, 3),@@ -187,7 +187,7 @@ query ($id: ID!, $channel: String, $filters: ProductFilterInput) {@pytest.mark.parametrize(- "channel, filter_channel, count, indexes_of_products_in_result",+ ("channel", "filter_channel", "count", "indexes_of_products_in_result"),[("channel_USD.slug", "channel_USD.slug", 2, [1, 2]),("channel_USD.slug", "channel_PLN.slug", 2, [1, 2]),@@ -242,7 +242,7 @@ def test_category_filter_products_by_channel(@pytest.mark.parametrize(- "is_published, count, indexes_of_products_in_result",+ ("is_published", "count", "indexes_of_products_in_result"),[(True, 2, [1, 2]),(False, 1, [0]),@@ -334,7 +334,7 @@ def test_category_filter_products_by_multiple_attributes(@pytest.mark.parametrize(- "stock_availability, count, indexes_of_products_in_result",+ ("stock_availability", "count", "indexes_of_products_in_result"),[("OUT_OF_STOCK", 2, [1, 2]),("IN_STOCK", 1, [0]),@@ -384,7 +384,7 @@ def test_category_filter_products_by_stock_availability(@pytest.mark.parametrize(- "quantity_input, warehouse_indexes, count, indexes_of_products_in_result",+ ("quantity_input", "warehouse_indexes", "count", "indexes_of_products_in_result"),[({"lte": "80", "gte": "20"}, [1, 2], 1, [1]),({"lte": "120", "gte": "40"}, [1, 2], 1, [0]),@@ -484,7 +484,7 @@ def test_category_filter_products_by_stocks(@pytest.mark.parametrize(- "is_published, count, indexes_of_products_in_result",+ ("is_published", "count", "indexes_of_products_in_result"),[(True, 1, [1]),(False, 0, []),diff --git a/saleor/graphql/product/tests/test_collection.py b/saleor/graphql/product/tests/test_collection.pyindex a79cdb548d..c4c03d274b 100644--- a/saleor/graphql/product/tests/test_collection.py+++ b/saleor/graphql/product/tests/test_collection.py@@ -626,13 +626,13 @@ def test_create_collection_without_background_image(@pytest.mark.parametrize(- "input_slug, expected_slug",- (+ ("input_slug", "expected_slug"),+ [("test-slug", "test-slug"),(None, "test-collection"),("", "test-collection"),("わたし-わ-にっぽん-です", "わたし-わ-にっぽん-です"),- ),+ ],)def test_create_collection_with_given_slug(staff_api_client, permission_manage_products, input_slug, expected_slug, channel_USD@@ -949,7 +949,7 @@ UPDATE_COLLECTION_SLUG_MUTATION = """@pytest.mark.parametrize(- "input_slug, expected_slug, error_message",+ ("input_slug", "expected_slug", "error_message"),[("test-slug", "test-slug", None),("", "", "Slug value cannot be blank."),@@ -1014,7 +1014,7 @@ def test_update_collection_slug_exists(@pytest.mark.parametrize(- "input_slug, expected_slug, input_name, error_message, error_field",+ ("input_slug", "expected_slug", "input_name", "error_message", "error_field"),[("test-slug", "test-slug", "New name", None, None),("", "", "New name", "Slug value cannot be blank.", "slug"),@@ -1838,7 +1838,7 @@ def test_query_collection_for_federation(api_client, published_collection, chann@pytest.mark.parametrize(- "collection_filter, count",+ ("collection_filter", "count"),[({"published": "PUBLISHED"}, 2),({"published": "HIDDEN"}, 1),@@ -1923,7 +1923,7 @@ QUERY_COLLECTIONS_WITH_SORT = """@pytest.mark.parametrize(- "collection_sort, result_order",+ ("collection_sort", "result_order"),[({"field": "NAME", "direction": "ASC"}, ["Coll1", "Coll2", "Coll3"]),({"field": "NAME", "direction": "DESC"}, ["Coll3", "Coll2", "Coll1"]),diff --git a/saleor/graphql/product/tests/test_collection_filtering_and_sorting_with_channels.py b/saleor/graphql/product/tests/test_collection_filtering_and_sorting_with_channels.pyindex 9f3f836b6e..0fe6058aa2 100644--- a/saleor/graphql/product/tests/test_collection_filtering_and_sorting_with_channels.py+++ b/saleor/graphql/product/tests/test_collection_filtering_and_sorting_with_channels.py@@ -72,6 +72,7 @@ def collections_for_sorting_with_channels(channel_USD, channel_PLN):),])+ return collectionsQUERY_COLLECTIONS_WITH_SORTING_AND_FILTERING = """@@ -121,7 +122,7 @@ def test_collections_with_sorting_and_without_channel(@pytest.mark.parametrize(- "sort_by, collections_order",+ ("sort_by", "collections_order"),[({"field": "AVAILABILITY", "direction": "ASC"},@@ -168,7 +169,7 @@ def test_collections_with_sorting_and_channel_USD(@pytest.mark.parametrize(- "sort_by, collections_order",+ ("sort_by", "collections_order"),[({"field": "AVAILABILITY", "direction": "ASC"},@@ -294,7 +295,7 @@ def test_collections_with_filtering_without_channel(@pytest.mark.parametrize(- "filter_by, collections_count",+ ("filter_by", "collections_count"),[({"published": "PUBLISHED"}, 1),({"published": "HIDDEN"}, 3),@@ -329,7 +330,7 @@ def test_collections_with_filtering_with_channel_USD(@pytest.mark.parametrize(- "filter_by, collections_count",+ ("filter_by", "collections_count"),[({"published": "PUBLISHED"}, 1), ({"published": "HIDDEN"}, 3)],)def test_collections_with_filtering_with_channel_PLN(diff --git a/saleor/graphql/product/tests/test_product_channel_listings_queries.py b/saleor/graphql/product/tests/test_product_channel_listings_queries.pyindex e51f3e3e27..41f90e8bb9 100644--- a/saleor/graphql/product/tests/test_product_channel_listings_queries.py+++ b/saleor/graphql/product/tests/test_product_channel_listings_queries.py@@ -277,7 +277,7 @@ def _configure_tax_rates(product):@pytest.mark.parametrize(- "net_PL, gross_PL, net_DE, gross_DE, prices_entered_with_tax",+ ("net_PL", "gross_PL", "net_DE", "gross_DE", "prices_entered_with_tax"),[(40.65, 50.00, 42.02, 50.00, True),(50.00, 61.50, 50.00, 59.50, False),diff --git a/saleor/graphql/product/tests/test_product_filtering_and_sorting_with_channels.py b/saleor/graphql/product/tests/test_product_filtering_and_sorting_with_channels.pyindex 88894943fc..d3b91f8f18 100644--- a/saleor/graphql/product/tests/test_product_filtering_and_sorting_with_channels.py+++ b/saleor/graphql/product/tests/test_product_filtering_and_sorting_with_channels.py@@ -290,7 +290,7 @@ def test_products_with_sorting_and_without_channel(@pytest.mark.parametrize(- "sort_by, products_order",+ ("sort_by", "products_order"),[({"field": "PUBLISHED", "direction": "ASC"},@@ -369,7 +369,7 @@ def test_products_with_sorting_and_channel_USD(@pytest.mark.parametrize(- "sort_by, products_order",+ ("sort_by", "products_order"),[({"field": "PUBLISHED", "direction": "ASC"},@@ -532,7 +532,7 @@ def test_products_with_filtering_without_channel(@pytest.mark.parametrize(- "filter_by, products_count",+ ("filter_by", "products_count"),[({"isPublished": True}, 3),({"isPublished": False}, 1),@@ -577,7 +577,7 @@ def test_products_with_filtering_with_channel_USD(@pytest.mark.parametrize(- "filter_by, products_count",+ ("filter_by", "products_count"),[({"isPublished": True}, 3),({"isPublished": False}, 1),@@ -685,7 +685,7 @@ def test_published_products_without_sku_as_staff(@pytest.mark.parametrize(- "products_filter, count",+ ("products_filter", "count"),[({"updatedAt": {"gte": "2012-01-14T10:59:00+00:00"}}, 2),({"updatedAt": {"lte": "2012-01-14T12:00:05+00:00"}}, 2),@@ -754,7 +754,7 @@ query Variants($sortBy: ProductVariantSortingInput, $channel: String) {@pytest.mark.parametrize(- "sort_by, variants_order",+ ("sort_by", "variants_order"),[({"field": "LAST_MODIFIED_AT", "direction": "ASC"},@@ -793,7 +793,7 @@ def test_products_variants_with_sorting_and_channel_USD(@pytest.mark.parametrize(- "sort_by, variants_order",+ ("sort_by", "variants_order"),[({"field": "LAST_MODIFIED_AT", "direction": "ASC"},diff --git a/saleor/graphql/product/tests/test_product_pagination.py b/saleor/graphql/product/tests/test_product_pagination.pyindex 3d669f5590..1cbbfed907 100644--- a/saleor/graphql/product/tests/test_product_pagination.py+++ b/saleor/graphql/product/tests/test_product_pagination.py@@ -90,7 +90,7 @@ QUERY_CATEGORIES_PAGINATION = """@pytest.mark.parametrize(- "sort_by, categories_order",+ ("sort_by", "categories_order"),[({"field": "NAME", "direction": "ASC"},@@ -132,7 +132,7 @@ def test_categories_pagination_with_sorting(@pytest.mark.parametrize(- "filter_by, categories_order",+ ("filter_by", "categories_order"),[({"search": "CategoryCategory"}, ["CategoryCategory1", "CategoryCategory2"]),({"search": "cat_cat"}, ["CategoryCategory1", "CategoryCategory2"]),@@ -213,7 +213,7 @@ QUERY_COLLECTIONS_PAGINATION = """@pytest.mark.parametrize(- "sort_by, collections_order",+ ("sort_by", "collections_order"),[({"field": "NAME", "direction": "ASC"},@@ -263,7 +263,7 @@ def test_collections_pagination_with_sorting(@pytest.mark.parametrize(- "filter_by, collections_order",+ ("filter_by", "collections_order"),[({"search": "CollectionCollection"},@@ -478,7 +478,7 @@ QUERY_PRODUCTS_PAGINATION = """@pytest.mark.parametrize(- "sort_by, products_order",+ ("sort_by", "products_order"),[({"field": "NAME", "direction": "ASC"}, ["Product1", "Product2", "Product3"]),(@@ -516,7 +516,7 @@ def test_products_pagination_with_sorting(@pytest.mark.parametrize(- "sort_by, products_order",+ ("sort_by", "products_order"),[({"field": "PUBLISHED", "direction": "ASC"},@@ -698,7 +698,7 @@ def test_products_pagination_for_products_with_the_same_names_one_page(@pytest.mark.parametrize(- "filter_by, products_order",+ ("filter_by", "products_order"),[({"hasCategory": True}, ["Product1", "Product2"]),(@@ -737,7 +737,7 @@ def test_products_pagination_with_filtering(@pytest.mark.parametrize(- "filter_by, products_order",+ ("filter_by", "products_order"),[({"isPublished": True}, ["Product1", "Product2"]),({"price": {"gte": 8, "lte": 12}}, ["Product1", "ProductProduct2"]),@@ -918,7 +918,7 @@ QUERY_PRODUCT_TYPES_PAGINATION = """@pytest.mark.parametrize(- "sort_by, product_types_order",+ ("sort_by", "product_types_order"),[({"field": "NAME", "direction": "ASC"},@@ -957,7 +957,7 @@ def test_product_types_pagination_with_sorting(@pytest.mark.parametrize(- "filter_by, product_types_order",+ ("filter_by", "product_types_order"),[({"search": "ProductTypeProductType"},diff --git a/saleor/graphql/product/tests/test_product_pricing.py b/saleor/graphql/product/tests/test_product_pricing.pyindex ffe3cdbab4..184ab08700 100644--- a/saleor/graphql/product/tests/test_product_pricing.py+++ b/saleor/graphql/product/tests/test_product_pricing.py@@ -96,7 +96,7 @@ def _configure_tax_rates(product):@pytest.mark.parametrize(- "net_PL, gross_PL, net_DE, gross_DE, prices_entered_with_tax",+ ("net_PL", "gross_PL", "net_DE", "gross_DE", "prices_entered_with_tax"),[(40.65, 50.00, 42.02, 50.00, True),(50.00, 61.50, 50.00, 59.50, False),diff --git a/saleor/graphql/product/tests/test_product_sorting.py b/saleor/graphql/product/tests/test_product_sorting.pyindex 4b89364ae6..07adc6cc8f 100644--- a/saleor/graphql/product/tests/test_product_sorting.py+++ b/saleor/graphql/product/tests/test_product_sorting.py@@ -161,8 +161,8 @@ query Products($sortBy: ProductOrder, $channel: String) {@freeze_time("2020-03-18 12:00:00")@pytest.mark.parametrize(- "direction, order_direction",- (("ASC", "published_at"), ("DESC", "-published_at")),+ ("direction", "order_direction"),+ [("ASC", "published_at"), ("DESC", "-published_at")],)def test_sort_products_by_published_at(direction, order_direction, api_client, product_list, channel_USD@@ -201,7 +201,7 @@ def test_sort_products_by_published_at(][email protected]("direction", ("ASC", "DESC"))[email protected]("direction", ["ASC", "DESC"])def test_sort_products_by_created_at(direction, api_client, product_list, channel_USD):variables = {"sortBy": {@@ -223,8 +223,8 @@ def test_sort_products_by_created_at(direction, api_client, product_list, channe@pytest.mark.parametrize(- "direction, order_direction",- (("ASC", "rating"), ("DESC", "-rating")),+ ("direction", "order_direction"),+ [("ASC", "rating"), ("DESC", "-rating")],)def test_sort_products_by_rating(direction, order_direction, api_client, product_list, channel_USDdiff --git a/saleor/graphql/product/tests/test_product_sorting_attributes.py b/saleor/graphql/product/tests/test_product_sorting_attributes.pyindex 7ca2c20207..5c0308bab0 100644--- a/saleor/graphql/product/tests/test_product_sorting_attributes.py+++ b/saleor/graphql/product/tests/test_product_sorting_attributes.py@@ -361,7 +361,7 @@ EXPECTED_SORTED_DATA_SINGLE_VALUE_ASC = [{"node": {"attributes": [{"attribute": {"slug": "dummy"}, "values": []}],- "name": "Another Dummy but first in ASC and has no attribute " "value",+ "name": "Another Dummy but first in ASC and has no attribute value",}},{@@ -480,7 +480,7 @@ EXPECTED_SORTED_DATA_MULTIPLE_VALUES_ASC = [{"node": {"attributes": [{"attribute": {"slug": "dummy"}, "values": []}],- "name": "Another Dummy but first in ASC and has no attribute " "value",+ "name": "Another Dummy but first in ASC and has no attribute value",}},{diff --git a/saleor/graphql/product/tests/test_variant_pricing.py b/saleor/graphql/product/tests/test_variant_pricing.pyindex fffe968fdb..c9b593c64f 100644--- a/saleor/graphql/product/tests/test_variant_pricing.py+++ b/saleor/graphql/product/tests/test_variant_pricing.py@@ -228,7 +228,7 @@ QUERY_GET_PRODUCT_VARIANTS_PRICING = """@pytest.mark.parametrize(- "variant_price_amount, api_variant_price",+ ("variant_price_amount", "api_variant_price"),[(200, 200), (0, 0)],)def test_product_variant_price(@@ -476,7 +476,7 @@ def _configure_tax_rates(product):@pytest.mark.parametrize(- "net_PL, gross_PL, net_DE, gross_DE, prices_entered_with_tax",+ ("net_PL", "gross_PL", "net_DE", "gross_DE", "prices_entered_with_tax"),[(40.65, 50.00, 42.02, 50.00, True),(50.00, 61.50, 50.00, 59.50, False),diff --git a/saleor/graphql/product/tests/test_variant_with_filtering.py b/saleor/graphql/product/tests/test_variant_with_filtering.pyindex 8bc9d30dea..d0dc655d08 100644--- a/saleor/graphql/product/tests/test_variant_with_filtering.py+++ b/saleor/graphql/product/tests/test_variant_with_filtering.py@@ -119,7 +119,7 @@ def products_for_variant_filtering(product_type, category):@pytest.mark.parametrize(- "filter_by, variants",+ ("filter_by", "variants"),[({"search": "Product1"}, ["P1-V1", "P1-V2", "PP1-V1"]),({"search": "Product3"}, ["P3-V1"]),@@ -189,7 +189,7 @@ def test_products_pagination_with_filtering(@pytest.mark.parametrize(- "variants_filter, count",+ ("variants_filter", "count"),[({"updatedAt": {"gte": "2012-01-14T10:59:00+00:00"}}, 2),({"updatedAt": {"lte": "2012-01-14T12:00:05+00:00"}}, 2),diff --git a/saleor/graphql/shipping/tests/mutations/test_shipping_method_channel_listing_update.py b/saleor/graphql/shipping/tests/mutations/test_shipping_method_channel_listing_update.pyindex 691765c28b..2046db782c 100644--- a/saleor/graphql/shipping/tests/mutations/test_shipping_method_channel_listing_update.py+++ b/saleor/graphql/shipping/tests/mutations/test_shipping_method_channel_listing_update.py@@ -746,7 +746,7 @@ def test_shipping_method_channel_listing_update_remove_channels(@pytest.mark.parametrize(- "price, min_price, max_price, invalid_field",+ ("price", "min_price", "max_price", "invalid_field"),[(10**9, 2, 3, "price"), (1, 2, 10**11, "maximumOrderPrice")],)def test_shipping_method_channel_listing_create_channel_max_value_validation(diff --git a/saleor/graphql/shipping/tests/mutations/test_shipping_price_create.py b/saleor/graphql/shipping/tests/mutations/test_shipping_price_create.pyindex c55058a0dd..2e4a5866a4 100644--- a/saleor/graphql/shipping/tests/mutations/test_shipping_price_create.py+++ b/saleor/graphql/shipping/tests/mutations/test_shipping_price_create.py@@ -426,8 +426,8 @@ WEIGHT_BASED_SHIPPING_MUTATION = """@pytest.mark.parametrize(- "min_weight, max_weight, expected_min_weight, expected_max_weight",- (+ ("min_weight", "max_weight", "expected_min_weight", "expected_max_weight"),+ [(10.32,15.64,@@ -435,7 +435,7 @@ WEIGHT_BASED_SHIPPING_MUTATION = """{"value": 15.64, "unit": WeightUnitsEnum.KG.name},),(10.92, None, {"value": 10.92, "unit": WeightUnitsEnum.KG.name}, None),- ),+ ],)def test_create_weight_based_shipping_method(shipping_zone,diff --git a/saleor/graphql/shipping/tests/mutations/test_shipping_price_update.py b/saleor/graphql/shipping/tests/mutations/test_shipping_price_update.pyindex a34f573462..00506f9546 100644--- a/saleor/graphql/shipping/tests/mutations/test_shipping_price_update.py+++ b/saleor/graphql/shipping/tests/mutations/test_shipping_price_update.py@@ -453,7 +453,7 @@ def test_update_shipping_method_multiple_errors(@pytest.mark.parametrize(- "min_delivery_days, max_delivery_days",+ ("min_delivery_days", "max_delivery_days"),[(None, 1),(1, None),diff --git a/saleor/graphql/shipping/tests/mutations/test_shipping_zone_create.py b/saleor/graphql/shipping/tests/mutations/test_shipping_zone_create.pyindex fd94a2a35a..c548bfff6f 100644--- a/saleor/graphql/shipping/tests/mutations/test_shipping_zone_create.py+++ b/saleor/graphql/shipping/tests/mutations/test_shipping_zone_create.py@@ -215,7 +215,7 @@ TEST_COUNTRIES_LIST = ["DZ", "AX", "BY"]@mock.patch(- "saleor.graphql.shipping.mutations.base." "get_countries_without_shipping_zone",+ "saleor.graphql.shipping.mutations.base.get_countries_without_shipping_zone",return_value=TEST_COUNTRIES_LIST,)def test_create_default_shipping_zone(diff --git a/saleor/graphql/shipping/tests/mutations/test_shipping_zone_update.py b/saleor/graphql/shipping/tests/mutations/test_shipping_zone_update.pyindex 21e886ef61..ca2243877d 100644--- a/saleor/graphql/shipping/tests/mutations/test_shipping_zone_update.py+++ b/saleor/graphql/shipping/tests/mutations/test_shipping_zone_update.py@@ -732,13 +732,13 @@ def test_update_shipping_zone_remove_channels_remove_common_warehouse_channel(@pytest.mark.parametrize(- "input, expected_countries",- (+ ("input", "expected_countries"),+ [({"default": True, "countries": ["PL"]}, [{"code": "PL"}]),({"default": True, "countries": []}, []),({"default": True, "countries": None}, []),({"default": True}, []),- ),+ ],)def test_shipping_method_update_countries(staff_api_client,diff --git a/saleor/graphql/shipping/tests/queries/test_shipping_zones_filtering.py b/saleor/graphql/shipping/tests/queries/test_shipping_zones_filtering.pyindex 3e5e59b6d2..87fdd17791 100644--- a/saleor/graphql/shipping/tests/queries/test_shipping_zones_filtering.py+++ b/saleor/graphql/shipping/tests/queries/test_shipping_zones_filtering.py@@ -18,7 +18,7 @@ QUERY_SHIPPING_ZONES_WITH_FILTER = """@pytest.mark.parametrize(- "lookup, expected_zones",+ ("lookup", "expected_zones"),[("Poland", {"Poland"}),("pol", {"Poland"}),diff --git a/saleor/graphql/shop/tests/mutations/test_shop_settings_update.py b/saleor/graphql/shop/tests/mutations/test_shop_settings_update.pyindex 72c4fefdf2..d7e2702b38 100644--- a/saleor/graphql/shop/tests/mutations/test_shop_settings_update.py+++ b/saleor/graphql/shop/tests/mutations/test_shop_settings_update.py@@ -345,14 +345,14 @@ def test_update_default_sender_settings(staff_api_client, permission_manage_sett@pytest.mark.parametrize("sender_name",- (+ ["\nDummy Name","\rDummy Name","Dummy Name\r","Dummy Name\n","Dummy\rName","Dummy\nName",- ),+ ],)def test_update_default_sender_settings_invalid_name(staff_api_client, permission_manage_settings, sender_name@@ -378,14 +378,14 @@ def test_update_default_sender_settings_invalid_name(@pytest.mark.parametrize("sender_email",- (+ ["[email protected]\r","[email protected]\n","dummy@example\r.com","dummy@example\n.com",- ),+ ],)def test_update_default_sender_settings_invalid_email(staff_api_client, permission_manage_settings, sender_emaildiff --git a/saleor/graphql/shop/tests/queries/test_shop.py b/saleor/graphql/shop/tests/queries/test_shop.pyindex f5d302080e..a24beb80f2 100644--- a/saleor/graphql/shop/tests/queries/test_shop.py+++ b/saleor/graphql/shop/tests/queries/test_shop.py@@ -55,13 +55,13 @@ def test_query_countries(user_api_client):@pytest.mark.parametrize(- "language_code, expected_value",- (+ ("language_code", "expected_value"),+ [("", "Afghanistan"),("(languageCode: EN)", "Afghanistan"),("(languageCode: PL)", "Afganistan"),("(languageCode: DE)", "Afghanistan"),- ),+ ],)def test_query_countries_with_translation(language_code, expected_value, user_api_client@@ -556,7 +556,9 @@ AVAILABLE_PAYMENT_GATEWAYS_QUERY = """"""-def test_query_available_payment_gateways(user_api_client, sample_gateway, channel_USD):+def test_query_available_payment_gateways(+ user_api_client, _sample_gateway, channel_USD+):# givenquery = AVAILABLE_PAYMENT_GATEWAYS_QUERY@@ -577,7 +579,7 @@ def test_query_available_payment_gateways(user_api_client, sample_gateway, channdef test_query_available_payment_gateways_specified_currency_USD(- user_api_client, sample_gateway, channel_USD+ user_api_client, _sample_gateway, channel_USD):# givenquery = AVAILABLE_PAYMENT_GATEWAYS_QUERY@@ -599,7 +601,7 @@ def test_query_available_payment_gateways_specified_currency_USD(def test_query_available_payment_gateways_specified_currency_EUR(- user_api_client, sample_gateway, channel_USD+ user_api_client, _sample_gateway, channel_USD):# givenquery = AVAILABLE_PAYMENT_GATEWAYS_QUERYdiff --git a/saleor/graphql/tax/tests/queries/test_tax_classes.py b/saleor/graphql/tax/tests/queries/test_tax_classes.pyindex fa057c07ef..cb75f0123f 100644--- a/saleor/graphql/tax/tests/queries/test_tax_classes.py+++ b/saleor/graphql/tax/tests/queries/test_tax_classes.py@@ -75,7 +75,7 @@ def test_tax_classes_filter_by_ids(staff_api_client):assert edges[0]["node"]["id"] == id[email protected]("country, count", [("PL", 1), ("US", 0)])[email protected](("country", "count"), [("PL", 1), ("US", 0)])def test_tax_classes_filter_by_countries(country, count, staff_api_client):# givenfilter = {"filter": {"countries": [country]}}diff --git a/saleor/graphql/tests/test_decorators.py b/saleor/graphql/tests/test_decorators.pyindex 2c11df287e..b39e3cd809 100644--- a/saleor/graphql/tests/test_decorators.py+++ b/saleor/graphql/tests/test_decorators.py@@ -12,7 +12,12 @@ from ..utils import get_user_or_app_from_context@pytest.mark.parametrize(- "permissions_required, effective_permissions, user_permissions, access_granted",+ (+ "permissions_required",+ "effective_permissions",+ "user_permissions",+ "access_granted",+ ),[([AppPermission.MANAGE_APPS], ["MANAGE_APPS"], ["manage_apps"], True),(@@ -53,7 +58,7 @@ def test_permission_required_with_limited_permissions(@pytest.mark.parametrize(- "permissions_required, user_permissions, access_granted",+ ("permissions_required", "user_permissions", "access_granted"),[([AppPermission.MANAGE_APPS], ["manage_apps"], True),(diff --git a/saleor/graphql/translations/tests/deprecated/test_translations.py b/saleor/graphql/translations/tests/deprecated/test_translations.pyindex df8b5d6621..a4737bb9a7 100644--- a/saleor/graphql/translations/tests/deprecated/test_translations.py+++ b/saleor/graphql/translations/tests/deprecated/test_translations.py@@ -405,7 +405,7 @@ QUERY_TRANSLATION_SALE = """@pytest.mark.parametrize(- "perm_codenames, return_sale",+ ("perm_codenames", "return_sale"),[(["manage_translations"], False),(["manage_translations", "manage_discounts"], True),diff --git a/saleor/graphql/translations/tests/test_translations.py b/saleor/graphql/translations/tests/test_translations.pyindex 5d53b76f29..7fa633c39e 100644--- a/saleor/graphql/translations/tests/test_translations.py+++ b/saleor/graphql/translations/tests/test_translations.py@@ -3041,7 +3041,7 @@ def test_shop_translation_validates_values_lengths(@pytest.mark.parametrize(- "kind, expected_typename",+ ("kind", "expected_typename"),[(TranslatableKinds.PRODUCT, "ProductTranslatableContent"),(TranslatableKinds.COLLECTION, "CollectionTranslatableContent"),@@ -3430,7 +3430,7 @@ QUERY_TRANSLATION_PAGE = """@pytest.mark.parametrize(- "is_published, perm_codenames",+ ("is_published", "perm_codenames"),[(True, ["manage_translations"]),(False, ["manage_translations"]),@@ -3484,7 +3484,7 @@ QUERY_TRANSLATION_SHIPPING_METHOD = """@pytest.mark.parametrize(- "perm_codenames, return_shipping_method",+ ("perm_codenames", "return_shipping_method"),[(["manage_translations"], False),(["manage_translations", "manage_shipping"], True),@@ -3586,7 +3586,7 @@ QUERY_TRANSLATION_VOUCHER = """@pytest.mark.parametrize(- "perm_codenames, return_voucher",+ ("perm_codenames", "return_voucher"),[(["manage_translations"], False),(["manage_translations", "manage_discounts"], True),diff --git a/saleor/graphql/warehouse/tests/mutations/test_warehouse_create.py b/saleor/graphql/warehouse/tests/mutations/test_warehouse_create.pyindex 5e361b1ce6..85e42d4638 100644--- a/saleor/graphql/warehouse/tests/mutations/test_warehouse_create.py+++ b/saleor/graphql/warehouse/tests/mutations/test_warehouse_create.py@@ -267,12 +267,12 @@ def test_create_warehouse_creates_address(@pytest.mark.parametrize(- "input_slug, expected_slug",- (+ ("input_slug", "expected_slug"),+ [("test-slug", "test-slug"),(None, "test-warehouse"),("", "test-warehouse"),- ),+ ],)def test_create_warehouse_with_given_slug(staff_api_client, permission_manage_products, input_slug, expected_slugdiff --git a/saleor/graphql/warehouse/tests/mutations/test_warehouse_update.py b/saleor/graphql/warehouse/tests/mutations/test_warehouse_update.pyindex f261647999..448e344df1 100644--- a/saleor/graphql/warehouse/tests/mutations/test_warehouse_update.py+++ b/saleor/graphql/warehouse/tests/mutations/test_warehouse_update.py@@ -233,7 +233,7 @@ def test_mutation_update_warehouse_to_country_with_different_validation_rules(@pytest.mark.parametrize(- "input_slug, expected_slug, error_message",+ ("input_slug", "expected_slug", "error_message"),[("test-slug", "test-slug", None),("", "", "Slug value cannot be blank."),@@ -307,7 +307,14 @@ def test_update_warehouse_slug_exists(@pytest.mark.parametrize(- "input_slug, expected_slug, input_name, expected_name, error_message, error_field",+ (+ "input_slug",+ "expected_slug",+ "input_name",+ "expected_name",+ "error_message",+ "error_field",+ ),[("test-slug", "test-slug", "New name", "New name", None, None),(@@ -371,7 +378,7 @@ def test_update_warehouse_slug_and_name(@pytest.mark.parametrize(- "expected_private, expected_cc_option",+ ("expected_private", "expected_cc_option"),[(private, option)for private in (True, False)diff --git a/saleor/graphql/warehouse/tests/queries/test_warehouses_filtering.py b/saleor/graphql/warehouse/tests/queries/test_warehouses_filtering.pyindex 7bac8bed77..cd80c8730c 100644--- a/saleor/graphql/warehouse/tests/queries/test_warehouses_filtering.py+++ b/saleor/graphql/warehouse/tests/queries/test_warehouses_filtering.py@@ -145,7 +145,7 @@ def test_query_warehouse_with_filters_by_id(@pytest.mark.parametrize(- "graphql_filter, db_filter", [("true", True), ("false", False)]+ ("graphql_filter", "db_filter"), [("true", True), ("false", False)])def test_query_warehouse_with_filters_by_is_private(staff_api_client,@@ -172,7 +172,7 @@ def test_query_warehouse_with_filters_by_is_private(@pytest.mark.parametrize(- "db_option, graphql_option",+ ("db_option", "graphql_option"),[(WarehouseClickAndCollectOption.DISABLED, "DISABLED"),(WarehouseClickAndCollectOption.ALL_WAREHOUSES, "ALL"),@@ -287,7 +287,7 @@ def test_query_warehouses_with_filters_by_channels_no_warehouse_returned(@pytest.mark.parametrize(- "filter_by, pages_count",+ ("filter_by", "pages_count"),[({"slugs": ["warehouse1", "warehouse2"]}, 2),({"slugs": []}, 2),diff --git a/saleor/graphql/warehouse/tests/queries/test_warehouses_pagination.py b/saleor/graphql/warehouse/tests/queries/test_warehouses_pagination.pyindex dbc9f51a1e..ab8fab6015 100644--- a/saleor/graphql/warehouse/tests/queries/test_warehouses_pagination.py+++ b/saleor/graphql/warehouse/tests/queries/test_warehouses_pagination.py@@ -64,7 +64,7 @@ QUERY_WAREHOUSES_PAGINATION = """@pytest.mark.parametrize(- "sort_by, warehouses_order",+ ("sort_by", "warehouses_order"),[({"field": "NAME", "direction": "ASC"},@@ -103,7 +103,7 @@ def test_warehouses_pagination_with_sorting(@pytest.mark.parametrize(- "filter_by, warehouses_order",+ ("filter_by", "warehouses_order"),[({"search": "WarehouseWarehouse"},diff --git a/saleor/graphql/webhook/tests/queries/test_sample_payload.py b/saleor/graphql/webhook/tests/queries/test_sample_payload.pyindex 4ceb32b32c..6656d294b2 100644--- a/saleor/graphql/webhook/tests/queries/test_sample_payload.py+++ b/saleor/graphql/webhook/tests/queries/test_sample_payload.py@@ -14,9 +14,8 @@ SAMPLE_PAYLOAD_QUERY = """@patch("saleor.graphql.webhook.resolvers.payloads.generate_sample_payload")@pytest.mark.parametrize(- "event_type, has_access",+ ("event_type", "has_access"),[- (WebhookSampleEventTypeEnum.ORDER_CREATED, True),(WebhookSampleEventTypeEnum.ORDER_CREATED, True),(WebhookSampleEventTypeEnum.ORDER_FULLY_PAID, True),(WebhookSampleEventTypeEnum.ORDER_UPDATED, True),@@ -57,9 +56,8 @@ def test_sample_payload_query_by_app(@patch("saleor.graphql.webhook.resolvers.payloads.generate_sample_payload")@pytest.mark.parametrize(- "event_type, has_access",+ ("event_type", "has_access"),[- (WebhookSampleEventTypeEnum.ORDER_CREATED, False),(WebhookSampleEventTypeEnum.ORDER_CREATED, False),(WebhookSampleEventTypeEnum.ORDER_FULLY_PAID, False),(WebhookSampleEventTypeEnum.ORDER_UPDATED, False),diff --git a/saleor/graphql/webhook/tests/test_subscription_query.py b/saleor/graphql/webhook/tests/test_subscription_query.pyindex 5d3c8342f7..d70e43f3b3 100644--- a/saleor/graphql/webhook/tests/test_subscription_query.py+++ b/saleor/graphql/webhook/tests/test_subscription_query.py@@ -51,7 +51,7 @@ def test_subscription_query():@pytest.mark.parametrize(- "query,events",+ ("query", "events"),[("""@@ -235,7 +235,7 @@ def test_get_event_type_from_subscription(query, events):@pytest.mark.parametrize(- "query,error_msg,error_type,error_code",+ ("query", "error_msg", "error_type", "error_code"),[("""diff --git a/saleor/order/tests/test_order.py b/saleor/order/tests/test_order.pyindex 785b4297e9..473eebe109 100644--- a/saleor/order/tests/test_order.py+++ b/saleor/order/tests/test_order.py@@ -705,7 +705,13 @@ def test_validate_voucher_in_order_without_voucher(@pytest.mark.parametrize(- "subtotal, discount_value, discount_type, min_spent_amount, expected_value",+ (+ "subtotal",+ "discount_value",+ "discount_type",+ "min_spent_amount",+ "expected_value",+ ),[("100", 10, DiscountValueType.FIXED, None, 10),("100.05", 10, DiscountValueType.PERCENTAGE, 100, Decimal("10.01")),@@ -745,7 +751,7 @@ def test_value_voucher_order_discount(@pytest.mark.parametrize(- "shipping_cost, discount_value, discount_type, expected_value",+ ("shipping_cost", "discount_value", "discount_type", "expected_value"),[(10, 50, DiscountValueType.PERCENTAGE, 5), (10, 20, DiscountValueType.FIXED, 10)],)def test_shipping_voucher_order_discount(@@ -784,8 +790,13 @@ def test_shipping_voucher_order_discount(@pytest.mark.parametrize(- "total, total_quantity, min_spent_amount, min_checkout_items_quantity,"- "voucher_type",+ (+ "total",+ "total_quantity",+ "min_spent_amount",+ "min_checkout_items_quantity",+ "voucher_type",+ ),[(99, 10, 100, 10, VoucherType.SHIPPING),(100, 9, 100, 10, VoucherType.SHIPPING),@@ -835,7 +846,7 @@ def test_shipping_voucher_checkout_discount_not_applicable_returns_zero(@pytest.mark.parametrize(- "discount_value, discount_type, apply_once_per_order, discount_amount",+ ("discount_value", "discount_type", "apply_once_per_order", "discount_amount"),[(5, DiscountValueType.FIXED, True, "5"),(5, DiscountValueType.FIXED, False, "25"),@@ -967,7 +978,7 @@ def test_change_order_line_quantity_changes_total_prices(@patch("saleor.plugins.manager.PluginsManager.notify")@pytest.mark.parametrize(- "has_standard,has_digital", ((True, True), (True, False), (False, True))+ ("has_standard", "has_digital"), [(True, True), (True, False), (False, True)])def test_send_fulfillment_order_lines_mails_by_user(mocked_notify,@@ -1011,7 +1022,7 @@ def test_send_fulfillment_order_lines_mails_by_user(@patch("saleor.plugins.manager.PluginsManager.notify")@pytest.mark.parametrize(- "has_standard,has_digital", ((True, True), (True, False), (False, True))+ ("has_standard", "has_digital"), [(True, True), (True, False), (False, True)])def test_send_fulfillment_order_lines_mails_by_app(mocked_notify,@@ -1054,7 +1065,7 @@ def test_send_fulfillment_order_lines_mails_by_app(@pytest.mark.parametrize(- "event_fun, expected_event_type",+ ("event_fun", "expected_event_type"),[(event_order_confirmation_notification, OrderEventsEmails.ORDER_CONFIRMATION),(event_payment_confirmed_notification, OrderEventsEmails.PAYMENT),@@ -1078,7 +1089,7 @@ def test_email_sent_event_with_user(order, event_fun, expected_event_type):@pytest.mark.parametrize(- "event_fun, expected_event_type",+ ("event_fun", "expected_event_type"),[(event_order_cancelled_notification, OrderEventsEmails.ORDER_CANCEL),(event_fulfillment_confirmed_notification, OrderEventsEmails.FULFILLMENT),@@ -1107,7 +1118,7 @@ def test_email_sent_event_with_user_without_app(order, event_fun, expected_event@pytest.mark.parametrize(- "event_fun, expected_event_type",+ ("event_fun", "expected_event_type"),[(event_order_cancelled_notification, OrderEventsEmails.ORDER_CANCEL),(event_fulfillment_confirmed_notification, OrderEventsEmails.FULFILLMENT),@@ -1135,7 +1146,7 @@ def test_email_sent_event_with_app(order, app, event_fun, expected_event_type):@pytest.mark.parametrize(- "event_fun, expected_event_type",+ ("event_fun", "expected_event_type"),[(event_order_confirmation_notification, OrderEventsEmails.ORDER_CONFIRMATION),(event_payment_confirmed_notification, OrderEventsEmails.PAYMENT),@@ -1158,7 +1169,7 @@ def test_email_sent_event_without_user_pk(order, event_fun, expected_event_type)@pytest.mark.parametrize(- "event_fun, expected_event_type",+ ("event_fun", "expected_event_type"),[(event_order_cancelled_notification, OrderEventsEmails.ORDER_CANCEL),(event_fulfillment_confirmed_notification, OrderEventsEmails.FULFILLMENT),diff --git a/saleor/order/tests/test_order_actions.py b/saleor/order/tests/test_order_actions.pyindex 1bb89804e5..10b409f8c0 100644--- a/saleor/order/tests/test_order_actions.py+++ b/saleor/order/tests/test_order_actions.py@@ -314,13 +314,15 @@ def test_mark_as_paid_no_billing_address(admin_user, draft_order):draft_order.save()manager = get_plugins_manager()- with pytest.raises(Exception):+ with pytest.raises(PaymentError, match="Order does not have a billing address."):mark_order_as_paid_with_payment(draft_order, admin_user, None, manager)def test_clean_mark_order_as_paid(payment_txn_preauth):order = payment_txn_preauth.order- with pytest.raises(PaymentError):+ with pytest.raises(+ PaymentError, match="Orders with payments can not be manually marked as paid."+ ):clean_mark_order_as_paid(order)diff --git a/saleor/order/tests/test_order_utils.py b/saleor/order/tests/test_order_utils.pyindex 45df5a5245..515e522a17 100644--- a/saleor/order/tests/test_order_utils.py+++ b/saleor/order/tests/test_order_utils.py@@ -29,13 +29,13 @@ from ..utils import (@pytest.mark.parametrize(- "status, previous_quantity, new_quantity, added_count, removed_count",- (+ ("status", "previous_quantity", "new_quantity", "added_count", "removed_count"),+ [(OrderStatus.DRAFT, 5, 2, 0, 3),(OrderStatus.UNCONFIRMED, 2, 5, 3, 0),(OrderStatus.UNCONFIRMED, 2, 0, 0, 2),(OrderStatus.DRAFT, 5, 5, 0, 0),- ),+ ],)def test_change_quantity_generates_proper_event(status,diff --git a/saleor/payment/gateways/adyen/tests/conftest.py b/saleor/payment/gateways/adyen/tests/conftest.pyindex a5c44116e7..dcaa7d0b0f 100644--- a/saleor/payment/gateways/adyen/tests/conftest.py+++ b/saleor/payment/gateways/adyen/tests/conftest.py@@ -130,7 +130,7 @@ def payment_adyen_for_order(order_with_lines):return paymentdef notification():def fun(event_code=None,diff --git a/saleor/payment/gateways/adyen/tests/utils/test_apple_pay.py b/saleor/payment/gateways/adyen/tests/utils/test_apple_pay.pyindex 5f073e1894..876c295630 100644--- a/saleor/payment/gateways/adyen/tests/utils/test_apple_pay.py+++ b/saleor/payment/gateways/adyen/tests/utils/test_apple_pay.py@@ -11,7 +11,7 @@ from saleor.payment.gateways.adyen.utils.apple_pay import (@pytest.mark.parametrize(- "validation_url,merchant_identifier,domain,display_name,certificate",+ ("validation_url", "merchant_identifier", "domain", "display_name", "certificate"),[("https://apple-pay-gateway.apple.com/paymentservices/startSession",diff --git a/saleor/payment/gateways/adyen/tests/utils/test_common.py b/saleor/payment/gateways/adyen/tests/utils/test_common.pyindex 8ceb0985e8..ffd29cdf60 100644--- a/saleor/payment/gateways/adyen/tests/utils/test_common.py+++ b/saleor/payment/gateways/adyen/tests/utils/test_common.py@@ -25,7 +25,8 @@ from ...utils.common import prepare_address_request_data@pytest.mark.parametrize(- "country_code, shopper_locale", [("JP", "ja_JP"), ("ZZ", "en_US"), ("US", "en_US")]+ ("country_code", "shopper_locale"),+ [("JP", "ja_JP"), ("ZZ", "en_US"), ("US", "en_US")],)def test_get_shopper_locale_value(country_code, shopper_locale, settings):# when@@ -676,7 +677,7 @@ def test_request_data_for_payment_append_checkout_details(@pytest.mark.parametrize(- "value, currency, expected_result",+ ("value", "currency", "expected_result"),[(Decimal(1000), "EUR", Decimal(10)),(Decimal(1), "PLN", Decimal("0.01")),@@ -692,7 +693,7 @@ def test_from_adyen_price(value, currency, expected_result):@pytest.mark.parametrize(- "value, currency, expected_result",+ ("value", "currency", "expected_result"),[(Decimal(10), "EUR", "1000"),(Decimal(1), "PLN", "100"),diff --git a/saleor/payment/gateways/adyen/tests/webhooks/test_handle_notifications.py b/saleor/payment/gateways/adyen/tests/webhooks/test_handle_notifications.pyindex 1f60a51afe..680eae06b6 100644--- a/saleor/payment/gateways/adyen/tests/webhooks/test_handle_notifications.py+++ b/saleor/payment/gateways/adyen/tests/webhooks/test_handle_notifications.py@@ -748,7 +748,7 @@ def test_handle_authorization_with_adyen_auto_capture_and_payment_charged(assert external_events.count() == 1[email protected]("payment_is_active", (True, False))[email protected]("payment_is_active", [True, False])def test_handle_cancel(payment_is_active, notification, adyen_plugin, payment_adyen_for_order):diff --git a/saleor/payment/gateways/authorize_net/tests/conftest.py b/saleor/payment/gateways/authorize_net/tests/conftest.pyindex 8bb863a7fd..768196098e 100644--- a/saleor/payment/gateways/authorize_net/tests/conftest.py+++ b/saleor/payment/gateways/authorize_net/tests/conftest.py@@ -22,7 +22,7 @@ def authorize_net_gateway_config():)def authorize_net_payment(payment_dummy):payment_dummy.gateway = "mirumee.payments.authorize_net"return payment_dummydiff --git a/saleor/payment/gateways/authorize_net/tests/test_authorize_net.py b/saleor/payment/gateways/authorize_net/tests/test_authorize_net.pyindex 7ff068148c..e3480cabf9 100644--- a/saleor/payment/gateways/authorize_net/tests/test_authorize_net.py+++ b/saleor/payment/gateways/authorize_net/tests/test_authorize_net.py@@ -18,14 +18,14 @@ REFUND_TOKEN = "test"@pytest.mark.integrationdef test_authenticate_test():success, _ = authenticate_test("test", "test", True)assert success@pytest.mark.integrationdef test_authenticate_test_failure():success, message = authenticate_test("test", "test", True)assert not success@@ -33,7 +33,7 @@ def test_authenticate_test_failure():@pytest.mark.integrationdef test_process_payment(dummy_payment_data, authorize_net_gateway_config):dummy_payment_data.token = INVALID_TOKENresponse = process_payment(dummy_payment_data, authorize_net_gateway_config)@@ -47,7 +47,7 @@ def test_process_payment(dummy_payment_data, authorize_net_gateway_config):@pytest.mark.integrationdef test_process_payment_with_user(dummy_payment_data, authorize_net_gateway_config, address):@@ -65,7 +65,7 @@ def test_process_payment_with_user(@pytest.mark.integrationdef test_process_payment_reuse_source(dummy_payment_data, authorize_net_gateway_config):dummy_payment_data.token = INVALID_TOKENdummy_payment_data.reuse_source = True@@ -80,7 +80,7 @@ def test_process_payment_reuse_source(dummy_payment_data, authorize_net_gateway_@pytest.mark.integrationdef test_process_payment_error_response(dummy_payment_data, authorize_net_gateway_config):@@ -99,7 +99,7 @@ def test_process_payment_error_response(@pytest.mark.integrationdef test_process_payment_error_response_null(dummy_payment_data, authorize_net_gateway_config):@@ -110,7 +110,7 @@ def test_process_payment_error_response_null(@pytest.mark.integrationdef test_refund(authorize_net_payment, authorize_net_gateway_config):payment_data = PaymentData(authorize_net_payment.gateway,@@ -136,7 +136,7 @@ def test_refund(authorize_net_payment, authorize_net_gateway_config):@pytest.mark.integrationdef test_refund_error(authorize_net_payment, authorize_net_gateway_config):payment_data = PaymentData(authorize_net_payment.gateway,@@ -162,7 +162,7 @@ def test_refund_error(authorize_net_payment, authorize_net_gateway_config):@pytest.mark.integrationdef test_authorize_and_capture(dummy_payment_data, authorize_net_gateway_config):dummy_payment_data.token = INVALID_TOKENauthorize_net_gateway_config.auto_capture = False@@ -187,7 +187,7 @@ def test_authorize_and_capture(dummy_payment_data, authorize_net_gateway_config)@pytest.mark.integrationdef test_void(authorize_net_payment, authorize_net_gateway_config):payment_data = PaymentData(authorize_net_payment.gateway,@@ -212,7 +212,7 @@ def test_void(authorize_net_payment, authorize_net_gateway_config):@pytest.mark.integrationdef test_void_duplicate(authorize_net_payment, authorize_net_gateway_config):"""Test that duplicate voids are considered successful."""payment_data = PaymentData(@@ -238,7 +238,7 @@ def test_void_duplicate(authorize_net_payment, authorize_net_gateway_config):@pytest.mark.integrationdef test_void_failure(authorize_net_payment, authorize_net_gateway_config):"""Test void with invalid transaction ID."""payment_data = PaymentData(@@ -264,7 +264,7 @@ def test_void_failure(authorize_net_payment, authorize_net_gateway_config):@pytest.mark.integrationdef test_list_client_sources(authorize_net_gateway_config):customer_id = "1929079648"response = list_client_sources(authorize_net_gateway_config, customer_id)@@ -278,7 +278,7 @@ def test_list_client_sources(authorize_net_gateway_config):@pytest.mark.integrationdef test_list_client_sources_other_name(authorize_net_gateway_config):customer_id = "1929079648"response = list_client_sources(authorize_net_gateway_config, customer_id)diff --git a/saleor/payment/gateways/authorize_net/tests/test_plugin.py b/saleor/payment/gateways/authorize_net/tests/test_plugin.pyindex f43d4c8a73..4be9869c7c 100644--- a/saleor/payment/gateways/authorize_net/tests/test_plugin.py+++ b/saleor/payment/gateways/authorize_net/tests/test_plugin.py@@ -68,7 +68,7 @@ def test_payment_gateway_validate(mocked_authenticate_test, authorize_net_plugin@pytest.mark.integrationdef test_payment_gateway_validate_production(authorize_net_plugin):for config in authorize_net_plugin.configuration:if config["name"] == "use_sandbox":@@ -78,7 +78,7 @@ def test_payment_gateway_validate_production(authorize_net_plugin):@pytest.mark.integrationdef test_payment_gateway_process_payment_production_failure(authorize_net_plugin, dummy_payment_data):diff --git a/saleor/payment/gateways/braintree/errors.py b/saleor/payment/gateways/braintree/errors.pyindex ffa39e04a5..8656ba482f 100644--- a/saleor/payment/gateways/braintree/errors.py+++ b/saleor/payment/gateways/braintree/errors.py@@ -23,7 +23,7 @@ from braintree.exceptions.too_many_requests_error import TooManyRequestsErrorfrom braintree.exceptions.upgrade_required_error import UpgradeRequiredErrorDEFAULT_ERROR_MESSAGE = (- "Unable to process the transaction. " "Transaction's token is incorrect or expired."+ "Unable to process the transaction. Transaction's token is incorrect or expired.")diff --git a/saleor/payment/gateways/braintree/tests/test_braintree.py b/saleor/payment/gateways/braintree/tests/test_braintree.pyindex f53b827ca3..531c148b14 100644--- a/saleor/payment/gateways/braintree/tests/test_braintree.py+++ b/saleor/payment/gateways/braintree/tests/test_braintree.py@@ -178,8 +178,8 @@ def test_get_braintree_gateway_sandbox(gateway_config):def test_get_braintree_gateway_inproperly_configured(gateway_config):+ gateway_config.connection_params["private_key"] = Nonewith pytest.raises(ImproperlyConfigured):- gateway_config.connection_params["private_key"] = Noneget_braintree_gateway(**gateway_config.connection_params)@@ -421,13 +421,8 @@ def test_capture(payment_txn_preauth, sandbox_braintree_gateway_config):def test_capture_incorrect_token(payment_txn_preauth, sandbox_braintree_gateway_config):payment_info = create_payment_information(payment_txn_preauth, "12345")with pytest.raises(BraintreeException) as e:- response = capture(payment_info, sandbox_braintree_gateway_config)- assert str(e.value) == DEFAULT_ERROR_MESSAGE- assert response.raw_response == extract_gateway_response(- braintree_error_response- )- assert not response.is_success- assert response.error == DEFAULT_ERROR+ capture(payment_info, sandbox_braintree_gateway_config)+ assert str(e.value) == DEFAULT_ERROR_MESSAGE@pytest.mark.integrationdiff --git a/saleor/payment/gateways/dummy/tests/test_dummy.py b/saleor/payment/gateways/dummy/tests/test_dummy.pyindex 4e549beead..f99d645e0c 100644--- a/saleor/payment/gateways/dummy/tests/test_dummy.py+++ b/saleor/payment/gateways/dummy/tests/test_dummy.py@@ -27,7 +27,7 @@ def test_authorize_success(payment_dummy):@pytest.mark.parametrize(- "is_active, charge_status",+ ("is_active", "charge_status"),[(False, ChargeStatus.NOT_CHARGED),(False, ChargeStatus.PARTIALLY_CHARGED),@@ -46,27 +46,23 @@ def test_authorize_failed(is_active, charge_status, payment_dummy):payment.charge_status = charge_statuspayment.save()with pytest.raises(PaymentError):- txn = gateway.authorize(+ gateway.authorize(payment=payment,token="Fake",manager=get_plugins_manager(),channel_slug=payment.order.channel.slug,)- assert txn is Nonedef test_authorize_gateway_error(payment_dummy, monkeypatch):monkeypatch.setattr("saleor.payment.gateways.dummy.dummy_success", lambda: False)with pytest.raises(PaymentError):- txn = gateway.authorize(+ gateway.authorize(payment=payment_dummy,token="Fake",manager=get_plugins_manager(),channel_slug=payment_dummy.order.channel.slug,)- assert txn.kind == TransactionKind.AUTH- assert not txn.is_success- assert txn.payment == payment_dummydef test_void_success(payment_txn_preauth):@@ -86,7 +82,7 @@ def test_void_success(payment_txn_preauth):@pytest.mark.parametrize(- "is_active, charge_status",+ ("is_active", "charge_status"),[(False, ChargeStatus.NOT_CHARGED),(False, ChargeStatus.PARTIALLY_CHARGED),@@ -105,29 +101,25 @@ def test_void_failed(is_active, charge_status, payment_dummy):payment.charge_status = charge_statuspayment.save()with pytest.raises(PaymentError):- txn = gateway.void(+ gateway.void(payment=payment,manager=get_plugins_manager(),channel_slug=payment.order.channel.slug,)- assert txn is Nonedef test_void_gateway_error(payment_txn_preauth, monkeypatch):monkeypatch.setattr("saleor.payment.gateways.dummy.dummy_success", lambda: False)with pytest.raises(PaymentError):- txn = gateway.void(+ gateway.void(payment=payment_txn_preauth,manager=get_plugins_manager(),channel_slug=payment_txn_preauth.order.channel.slug,)- assert txn.kind == TransactionKind.VOID- assert not txn.is_success- assert txn.payment == payment_txn_preauth@pytest.mark.parametrize(- "amount, charge_status",+ ("amount", "charge_status"),[("98.40", ChargeStatus.FULLY_CHARGED), (70, ChargeStatus.PARTIALLY_CHARGED)],)def test_capture_success(amount, charge_status, payment_txn_preauth):@@ -145,7 +137,7 @@ def test_capture_success(amount, charge_status, payment_txn_preauth):@pytest.mark.parametrize(- "amount, captured_amount, charge_status, is_active",+ ("amount", "captured_amount", "charge_status", "is_active"),[(80, 0, ChargeStatus.NOT_CHARGED, False),(120, 0, ChargeStatus.NOT_CHARGED, True),@@ -163,33 +155,32 @@ def test_capture_failed(payment.charge_status = charge_statuspayment.save()with pytest.raises(PaymentError):- txn = gateway.capture(+ gateway.capture(payment=payment,manager=get_plugins_manager(),amount=amount,channel_slug=payment.order.channel.slug,)- assert txn is Nonedef test_capture_gateway_error(payment_txn_preauth, monkeypatch):monkeypatch.setattr("saleor.payment.gateways.dummy.dummy_success", lambda: False)with pytest.raises(PaymentError):- txn = gateway.capture(+ gateway.capture(payment=payment_txn_preauth,manager=get_plugins_manager(),amount=80,channel_slug=payment_txn_preauth.order.channel.slug,)- assert txn.kind == TransactionKind.CAPTURE- assert not txn.is_success- assert txn.payment == payment_txn_preauth@pytest.mark.parametrize((- "initial_captured_amount, refund_amount, final_captured_amount, "- "final_charge_status, active_after"+ "initial_captured_amount",+ "refund_amount",+ "final_captured_amount",+ "final_charge_status",+ "active_after",),[(80, 80, 0, ChargeStatus.FULLY_REFUNDED, False),@@ -225,7 +216,7 @@ def test_refund_success(@pytest.mark.parametrize(- "initial_captured_amount, refund_amount, initial_charge_status",+ ("initial_captured_amount", "refund_amount", "initial_charge_status"),[(0, 10, ChargeStatus.NOT_CHARGED),(10, 20, ChargeStatus.PARTIALLY_CHARGED),@@ -242,13 +233,12 @@ def test_refund_failed(payment.captured_amount = Decimal(initial_captured_amount)payment.save()with pytest.raises(PaymentError):- txn = gateway.refund(+ gateway.refund(payment=payment,manager=get_plugins_manager(),amount=Decimal(refund_amount),channel_slug=payment.order.channel.slug,)- assert txn is Nonedef test_refund_gateway_error(payment_txn_captured, monkeypatch):diff --git a/saleor/payment/gateways/dummy_credit_card/tests/test_dummy_credit_card.py b/saleor/payment/gateways/dummy_credit_card/tests/test_dummy_credit_card.pyindex 39872d4a66..0f563fdda5 100644--- a/saleor/payment/gateways/dummy_credit_card/tests/test_dummy_credit_card.py+++ b/saleor/payment/gateways/dummy_credit_card/tests/test_dummy_credit_card.py@@ -49,7 +49,7 @@ def test_authorize_success(payment_dummy_credit_card):@pytest.mark.parametrize(- "is_active, charge_status, error",+ ("is_active", "charge_status", "error"),[(False, ChargeStatus.NOT_CHARGED, NO_LONGER_ACTIVE),(False, ChargeStatus.PARTIALLY_CHARGED, NO_LONGER_ACTIVE),@@ -131,7 +131,7 @@ def test_void_success(payment_txn_preauth):@pytest.mark.parametrize(- "is_active, charge_status, error",+ ("is_active", "charge_status", "error"),[(True, ChargeStatus.PARTIALLY_CHARGED, LACK_OF_SUCCESSFUL_TRANSACTION),(True, ChargeStatus.FULLY_CHARGED, LACK_OF_SUCCESSFUL_TRANSACTION),@@ -187,7 +187,7 @@ def test_void_method_error(dummy_payment_data, dummy_gateway_config, monkeypatch@pytest.mark.parametrize(- "amount, charge_status, token",+ ("amount", "charge_status", "token"),[("98.40", ChargeStatus.FULLY_CHARGED, "1111111111111111"),(70, ChargeStatus.PARTIALLY_CHARGED, "2222222222222222"),@@ -216,7 +216,7 @@ def test_capture_success(amount, charge_status, token, payment_txn_preauth):@pytest.mark.parametrize(- "amount, captured_amount, charge_status, is_active, error",+ ("amount", "captured_amount", "charge_status", "is_active", "error"),[(80, 0, ChargeStatus.NOT_CHARGED, False, NO_LONGER_ACTIVE),(120, 0, ChargeStatus.NOT_CHARGED, True, CANNOT_CHARGE_MORE_THAN_UNCAPTURED),@@ -244,7 +244,7 @@ def test_capture_failed(assert e._excinfo[1].message == error[email protected]("token, error", list(TOKEN_VALIDATION_MAPPING.items()))[email protected](("token", "error"), list(TOKEN_VALIDATION_MAPPING.items()))def test_capture_error_in_response(token, error, payment_txn_preauth):# givenpayment_txn_preauth.gateway = "mirumee.payments.dummy_credit_card"@@ -265,7 +265,7 @@ def test_capture_error_in_response(token, error, payment_txn_preauth):assert e._excinfo[1].message == error[email protected]("token, error", list(TOKEN_VALIDATION_MAPPING.items()))[email protected](("token", "error"), list(TOKEN_VALIDATION_MAPPING.items()))def test_capture_method_error(token, error, dummy_payment_data, dummy_gateway_config, monkeypatch):@@ -283,8 +283,11 @@ def test_capture_method_error(@pytest.mark.parametrize((- "initial_captured_amount, refund_amount, final_captured_amount, "- "final_charge_status, active_after"+ "initial_captured_amount",+ "refund_amount",+ "final_captured_amount",+ "final_charge_status",+ "active_after",),[(80, 80, 0, ChargeStatus.FULLY_REFUNDED, False),@@ -321,7 +324,7 @@ def test_refund_success(@pytest.mark.parametrize(- "initial_captured_amount, refund_amount, initial_charge_status, error",+ ("initial_captured_amount", "refund_amount", "initial_charge_status", "error"),[(0, 10, ChargeStatus.NOT_CHARGED, CANNOT_REFUND_MORE_THAN_CAPTURE),(10, 20, ChargeStatus.PARTIALLY_CHARGED, CANNOT_REFUND_MORE_THAN_CAPTURE),@@ -397,7 +400,7 @@ def test_process_payment_success(token, payment_dummy_credit_card):assert payment_dummy_credit_card.is_active[email protected]("token, error", list(TOKEN_VALIDATION_MAPPING.items()))[email protected](("token", "error"), list(TOKEN_VALIDATION_MAPPING.items()))def test_process_payment_failed(token, error, payment_dummy_credit_card):# whenwith pytest.raises(PaymentError) as e:@@ -508,7 +511,7 @@ def test_process_payment_pre_authorized_and_capture_error(assert e._excinfo[1].message == TOKEN_VALIDATION_MAPPING[token][email protected]("token, error", list(TOKEN_VALIDATION_MAPPING.items()))[email protected](("token", "error"), list(TOKEN_VALIDATION_MAPPING.items()))def test_process_payment_method_error_in_response(token, error, dummy_gateway_config, dummy_payment_data):diff --git a/saleor/payment/gateways/np_atobarai/tests/test_api_helpers.py b/saleor/payment/gateways/np_atobarai/tests/test_api_helpers.pyindex 1c43729c8f..8a613e83e3 100644--- a/saleor/payment/gateways/np_atobarai/tests/test_api_helpers.py+++ b/saleor/payment/gateways/np_atobarai/tests/test_api_helpers.py@@ -186,7 +186,7 @@ def test_get_goods(@pytest.mark.parametrize(- "refund_amount, discount_goods",+ ("refund_amount", "discount_goods"),[(Decimal("0.00"), []),(diff --git a/saleor/payment/gateways/np_atobarai/tests/test_utils.py b/saleor/payment/gateways/np_atobarai/tests/test_utils.pyindex 4182df0ff5..ee6028d9b9 100644--- a/saleor/payment/gateways/np_atobarai/tests/test_utils.py+++ b/saleor/payment/gateways/np_atobarai/tests/test_utils.py@@ -104,7 +104,7 @@ def test_get_shipping_company_code_no_metadata(@pytest.mark.parametrize(- ["config_shipping_company_code", "result_shipping_company_code"],+ ("config_shipping_company_code", "result_shipping_company_code"),zip(SHIPPING_COMPANY_CODES + ["invalid_code"], SHIPPING_COMPANY_CODES + [None]),)def test_get_shipping_company_code_valid_metadata(diff --git a/saleor/payment/gateways/razorpay/tests/test_razorpay.py b/saleor/payment/gateways/razorpay/tests/test_razorpay.pyindex d339bfa9b8..9d6dcdcde2 100644--- a/saleor/payment/gateways/razorpay/tests/test_razorpay.py+++ b/saleor/payment/gateways/razorpay/tests/test_razorpay.py@@ -38,7 +38,7 @@ def gateway_config():)def razorpay_success_response():return {"id": "transaction123",@@ -47,13 +47,13 @@ def razorpay_success_response():}def razorpay_payment(payment_dummy):payment_dummy.currency = "INR"return payment_dummydef charged_payment(razorpay_payment):razorpay_payment.captured_amount = razorpay_payment.totalrazorpay_payment.charge_status = ChargeStatus.FULLY_CHARGEDdiff --git a/saleor/payment/gateways/stripe/deprecated/tests/test_stripe.py b/saleor/payment/gateways/stripe/deprecated/tests/test_stripe.pyindex 6251464ba8..ceee97b1fe 100644--- a/saleor/payment/gateways/stripe/deprecated/tests/test_stripe.py+++ b/saleor/payment/gateways/stripe/deprecated/tests/test_stripe.py@@ -32,7 +32,7 @@ PAYMENT_METHOD_CARD_3D_SECURE = "pm_card_threeDSecure2Required"RECORD = Falsedef gateway_config():return GatewayConfig(gateway_name="stripe",@@ -52,7 +52,7 @@ def gateway_config():)def sandbox_gateway_config(gateway_config):if RECORD:connection_params = {@@ -63,7 +63,7 @@ def sandbox_gateway_config(gateway_config):return gateway_configdef stripe_payment(payment_dummy):payment_dummy.total = TRANSACTION_AMOUNTpayment_dummy.currency = TRANSACTION_CURRENCY@@ -162,7 +162,7 @@ def test_authorize_with_customer_id(payment_dummy, sandbox_gateway_config):assert response.is_successdef stripe_authorized_payment(stripe_payment):stripe_payment.charge_status = ChargeStatus.NOT_CHARGEDstripe_payment.save(update_fields=["charge_status"])@@ -224,7 +224,7 @@ def test_capture_error_response(stripe_payment, sandbox_gateway_config):assert response.currency == stripe_payment.currencydef stripe_paid_payment(stripe_payment):stripe_payment.charge_status = ChargeStatus.FULLY_CHARGEDstripe_payment.save(update_fields=["charge_status"])diff --git a/saleor/payment/gateways/stripe/tests/test_plugin.py b/saleor/payment/gateways/stripe/tests/test_plugin.pyindex 726a40d56e..9b306e8e78 100644--- a/saleor/payment/gateways/stripe/tests/test_plugin.py+++ b/saleor/payment/gateways/stripe/tests/test_plugin.py@@ -1241,7 +1241,7 @@ def test_confirm_payment_for_webhook(kind, stripe_plugin, payment_stripe_for_che@pytest.mark.parametrize(- "kind, status",+ ("kind", "status"),[(TransactionKind.AUTH, AUTHORIZED_STATUS),(TransactionKind.CAPTURE, SUCCESS_STATUS),@@ -1298,7 +1298,7 @@ def test_confirm_payment_intent_without_details(@pytest.mark.parametrize(- "kind, status",+ ("kind", "status"),[(TransactionKind.AUTH, AUTHORIZED_STATUS),(TransactionKind.CAPTURE, SUCCESS_STATUS),diff --git a/saleor/payment/gateways/stripe/tests/test_webhooks.py b/saleor/payment/gateways/stripe/tests/test_webhooks.pyindex 1d9455398f..2f53505f49 100644--- a/saleor/payment/gateways/stripe/tests/test_webhooks.py+++ b/saleor/payment/gateways/stripe/tests/test_webhooks.py@@ -157,7 +157,7 @@ def test_handle_successful_payment_intent_when_order_creation_raises_exception(@pytest.mark.parametrize(- ["metadata", "called"],+ ("metadata", "called"),[({f"key{i}": f"value{i}" for i in range(5)}, True), ({}, False)],)@patch(@@ -584,7 +584,7 @@ def test_handle_authorized_payment_intent_for_processing_order_payment(@pytest.mark.parametrize(- ["metadata", "called"], [({"key": "value"}, True), ({}, False)]+ ("metadata", "called"), [({"key": "value"}, True), ({}, False)])@patch("saleor.payment.gateways.stripe.webhooks.complete_checkout", wraps=complete_checkout@@ -1271,7 +1271,7 @@ def test_handle_refund_different_checkout_channel_slug(@pytest.mark.parametrize(- "webhook_type, fun_to_mock",+ ("webhook_type", "fun_to_mock"),[(WEBHOOK_SUCCESS_EVENT, "handle_successful_payment_intent"),(WEBHOOK_PROCESSING_EVENT, "handle_processing_payment_intent"),diff --git a/saleor/payment/tests/test_gateways_utils.py b/saleor/payment/tests/test_gateways_utils.pyindex b0d9a38e8a..cb3b95d668 100644--- a/saleor/payment/tests/test_gateways_utils.py+++ b/saleor/payment/tests/test_gateways_utils.py@@ -17,7 +17,7 @@ def gateway_config():@pytest.mark.parametrize(- "supported_currencies, expected_currencies",+ ("supported_currencies", "expected_currencies"),[("PLN, USD, EUR", ["PLN", "USD", "EUR"]),("PLN,EUR", ["PLN", "EUR"]),diff --git a/saleor/payment/tests/test_payment.py b/saleor/payment/tests/test_payment.pyindex b6e8a0a0c9..690b373af7 100644--- a/saleor/payment/tests/test_payment.py+++ b/saleor/payment/tests/test_payment.py@@ -680,7 +680,7 @@ def test_validate_gateway_response_not_json_serializable(gateway_response):@pytest.mark.parametrize(- "currency, exp_response",+ ("currency", "exp_response"),[("EUR", True), ("USD", True), ("PLN", False)],)def test_is_currency_supported(diff --git a/saleor/payment/tests/test_utils.py b/saleor/payment/tests/test_utils.pyindex b54422b724..2becfb9c80 100644--- a/saleor/payment/tests/test_utils.py+++ b/saleor/payment/tests/test_utils.py@@ -250,7 +250,7 @@ def test_parse_transaction_action_data_with_only_psp_reference():@pytest.mark.parametrize(- "event_time, expected_datetime",+ ("event_time", "expected_datetime"),[("2023-10-17T10:18:28.111Z",@@ -1040,7 +1040,7 @@ def test_create_transaction_event_from_request_and_webhook_response_different_am@pytest.mark.parametrize(- "db_field_name, value, event_type",+ ("db_field_name", "value", "event_type"),[("authorized_value", Decimal("12"), TransactionEventType.AUTHORIZATION_SUCCESS),("charged_value", Decimal("13"), TransactionEventType.CHARGE_SUCCESS),@@ -1154,7 +1154,7 @@ def test_create_manual_adjustment_events_additional_cancel(@pytest.mark.parametrize(- "request_type, expected_events",+ ("request_type", "expected_events"),[(TransactionEventType.AUTHORIZATION_REQUEST,@@ -1193,7 +1193,7 @@ def test_get_correct_event_types_based_on_request_type(request_type, expected_ev@pytest.mark.parametrize(- "response_result, transaction_amount_field_name",+ ("response_result", "transaction_amount_field_name"),[(TransactionEventType.AUTHORIZATION_REQUEST, "authorize_pending_value"),(TransactionEventType.AUTHORIZATION_SUCCESS, "authorized_value"),@@ -1234,7 +1234,7 @@ def test_create_transaction_event_for_transaction_session_success_response(@pytest.mark.parametrize(- "response_result, transaction_amount_field_name",+ ("response_result", "transaction_amount_field_name"),[(TransactionEventType.AUTHORIZATION_REQUEST, "authorize_pending_value"),(TransactionEventType.AUTHORIZATION_SUCCESS, "authorized_value"),diff --git a/saleor/payment/utils.py b/saleor/payment/utils.pyindex 213f948305..25f5e89718 100644--- a/saleor/payment/utils.py+++ b/saleor/payment/utils.py@@ -746,7 +746,7 @@ def parse_transaction_event_data():returnmissing_msg = (- "Missing value for field: %s in " "response of transaction action webhook."+ "Missing value for field: %s in response of transaction action webhook.")invalid_msg = ("Incorrect value for field: %s, value: %s in "diff --git a/saleor/permission/management.py b/saleor/permission/management.pyindex 4febcee9b1..4bd59630b3 100644--- a/saleor/permission/management.py+++ b/saleor/permission/management.py@@ -94,4 +94,4 @@ def create_permissions(Permission.objects.using(using).bulk_create(perms)if verbosity >= 2:for perm in perms:- print("Adding permission '%s'" % perm)+ print("Adding permission '%s'" % perm) # noqa: T201diff --git a/saleor/permission/tests/test_all_permissions_required.py b/saleor/permission/tests/test_all_permissions_required.pyindex 5a7baf20ee..15a3114d8e 100644--- a/saleor/permission/tests/test_all_permissions_required.py+++ b/saleor/permission/tests/test_all_permissions_required.py@@ -8,7 +8,7 @@ from ..utils import one_of_permissions_or_auth_filter_required@pytest.mark.parametrize(- "permissions, expected_result",+ ("permissions", "expected_result"),[(None, True),([], True),@@ -76,7 +76,7 @@ def test_permissions_for_app(@pytest.mark.parametrize(- "permissions, expected_result",+ ("permissions", "expected_result"),[(None, True),([], True),@@ -144,7 +144,7 @@ def test_permissions_for_staff_user(@pytest.mark.parametrize(- "permissions, expected_result",+ ("permissions", "expected_result"),[(None, True),([], True),diff --git a/saleor/permission/tests/test_one_of_permissions_or_auth_filter_required.py b/saleor/permission/tests/test_one_of_permissions_or_auth_filter_required.pyindex a36dae7d94..bb9d9fdb36 100644--- a/saleor/permission/tests/test_one_of_permissions_or_auth_filter_required.py+++ b/saleor/permission/tests/test_one_of_permissions_or_auth_filter_required.py@@ -8,7 +8,7 @@ from ..utils import all_permissions_required@pytest.mark.parametrize(- "permissions, expected_result",+ ("permissions", "expected_result"),[(None, True),([], True),@@ -98,7 +98,7 @@ def test_permissions_for_app(@pytest.mark.parametrize(- "permissions, expected_result",+ ("permissions", "expected_result"),[(None, True),([], True),@@ -198,7 +198,7 @@ def test_permissions_for_staff_user(@pytest.mark.parametrize(- "permissions, expected_result",+ ("permissions", "expected_result"),[(None, True),([], True),diff --git a/saleor/plugins/admin_email/tests/test_notify_events.py b/saleor/plugins/admin_email/tests/test_notify_events.pyindex c10a5e2566..d606c9ad6e 100644--- a/saleor/plugins/admin_email/tests/test_notify_events.py+++ b/saleor/plugins/admin_email/tests/test_notify_events.py@@ -174,7 +174,7 @@ def test_send_staff_order_confirmation_empty_template(@mock.patch(- "saleor.plugins.admin_email.notify_events." "send_export_failed_email_task.delay"+ "saleor.plugins.admin_email.notify_events.send_export_failed_email_task.delay")def test_send_csv_export_failed(mocked_email_task, admin_email_plugin):payload = {@@ -188,7 +188,7 @@ def test_send_csv_export_failed(mocked_email_task, admin_email_plugin):@mock.patch(- "saleor.plugins.admin_email.notify_events." "send_export_failed_email_task.delay"+ "saleor.plugins.admin_email.notify_events.send_export_failed_email_task.delay")def test_send_csv_export_failed_empty_template(mocked_email_task, admin_email_plugin):payload = {diff --git a/saleor/plugins/avatax/__init__.py b/saleor/plugins/avatax/__init__.pyindex 4aa62cd6ac..58892e758d 100644--- a/saleor/plugins/avatax/__init__.py+++ b/saleor/plugins/avatax/__init__.py@@ -147,7 +147,7 @@ def api_get_request(return {}-def _validate_adddress_details(+def _validate_address_details(shipping_address: Optional[Address],is_shipping_required: bool,address: Optional[Address],@@ -179,7 +179,7 @@ def _validate_order(order: "Order") -> bool:delivery_method = order.shipping_methodshipping_address = order.shipping_addressaddress = shipping_address or order.billing_address- valid_address_details = _validate_adddress_details(+ valid_address_details = _validate_address_details(shipping_address, shipping_required, address, delivery_method)if not valid_address_details:@@ -203,7 +203,7 @@ def _validate_checkout(shipping_required = is_shipping_required(lines)shipping_address = checkout_info.delivery_method_info.shipping_addressaddress = shipping_address or checkout_info.billing_address- return _validate_adddress_details(+ return _validate_address_details(shipping_address,shipping_required,address,diff --git a/saleor/plugins/avatax/tests/test_avatax.py b/saleor/plugins/avatax/tests/test_avatax.pyindex 7c643b47cd..6c703c3384 100644--- a/saleor/plugins/avatax/tests/test_avatax.py+++ b/saleor/plugins/avatax/tests/test_avatax.py@@ -42,7 +42,7 @@ from .. import (TAX_CODE_NON_TAXABLE_PRODUCT,AvataxConfiguration,TransactionType,- _validate_adddress_details,+ _validate_address_details,_validate_checkout,_validate_order,api_get_request,@@ -72,9 +72,9 @@ def order_set_shipping_method(order, shipping_method):)@pytest.mark.parametrize(- "expected_net, expected_gross, prices_entered_with_tax",+ ("expected_net", "expected_gross", "prices_entered_with_tax"),[("24.39", "30.00", True),("30.00", "36.90", False),@@ -126,9 +126,9 @@ def test_calculate_checkout_line_total()@pytest.mark.parametrize(- "expected_net, expected_gross, prices_entered_with_tax",+ ("expected_net", "expected_gross", "prices_entered_with_tax"),[("12.20", "15.00", True),("15.00", "18.45", False),@@ -476,9 +476,9 @@ def test_calculate_checkout_line_total_with_variant_on_promotion_and_voucher_onl)@pytest.mark.parametrize(- "expected_net, expected_gross, prices_entered_with_tax",+ ("expected_net", "expected_gross", "prices_entered_with_tax"),[("24.39", "30.00", True),("30.00", "36.90", False),@@ -536,9 +536,9 @@ def test_calculate_checkout_line_without_sku_total()@pytest.mark.parametrize(- "expected_net, expected_gross, prices_entered_with_tax",+ ("expected_net", "expected_gross", "prices_entered_with_tax"),[("12.20", "15.00", True),("15.00", "18.45", False),@@ -601,7 +601,7 @@ def test_calculate_checkout_line_without_sku_total_with_promotion()@override_settings(PLUGINS=["saleor.plugins.avatax.plugin.AvataxPlugin"])def test_calculate_order_line_total(order_line,@@ -666,7 +666,7 @@ def test_calculate_order_line_total(assert total == TaxedMoney(net=Money("24.39", "USD"), gross=Money("30.00", "USD"))@override_settings(PLUGINS=["saleor.plugins.avatax.plugin.AvataxPlugin"])def test_calculate_order_line_without_sku_total(order_line,@@ -727,7 +727,7 @@ def test_calculate_order_line_without_sku_total(assert total == TaxedMoney(net=Money("24.39", "USD"), gross=Money("30.00", "USD"))@override_settings(PLUGINS=["saleor.plugins.avatax.plugin.AvataxPlugin"])def test_calculate_order_line_total_with_discount(order_line,@@ -798,9 +798,9 @@ def test_calculate_order_line_total_with_discount()@pytest.mark.parametrize(- "expected_net, expected_gross, prices_entered_with_tax",+ ("expected_net", "expected_gross", "prices_entered_with_tax"),[("16.26", "20.00", True),("20.00", "24.60", False),@@ -890,9 +890,9 @@ def test_calculate_order_line_total_entire_order_voucher()@pytest.mark.parametrize(- "expected_net, expected_gross, prices_entered_with_tax",+ ("expected_net", "expected_gross", "prices_entered_with_tax"),[("24.39", "30.00", True),("30.00", "36.90", False),@@ -1083,7 +1083,7 @@ def test_calculate_order_shipping_order_not_valid(@pytest.mark.vcr@pytest.mark.parametrize(- ("expected_net, expected_gross, voucher_amount, prices_entered_with_tax"),+ ("expected_net", "expected_gross", "voucher_amount", "prices_entered_with_tax"),[("41.99", "51.19", "0.0", False),("32.04", "38.99", "3.0", True),@@ -1149,7 +1149,7 @@ def test_calculate_checkout_total_uses_default_calculation(@pytest.mark.vcr@pytest.mark.parametrize(- ("expected_net, expected_gross, voucher_amount, prices_entered_with_tax"),+ ("expected_net", "expected_gross", "voucher_amount", "prices_entered_with_tax"),[("22.32", "26.99", "0.0", True),("21.99", "26.73", "5.0", False),@@ -1220,7 +1220,7 @@ def test_calculate_checkout_total_uses_default_calculation_with_promotion(@pytest.mark.vcr@pytest.mark.parametrize(- ("expected_net, expected_gross, voucher_amount, prices_entered_with_tax"),+ ("expected_net", "expected_gross", "voucher_amount", "prices_entered_with_tax"),[("41.99", "51.19", "0.0", False),("32.04", "38.99", "3.0", True),@@ -1294,7 +1294,7 @@ def test_calculate_checkout_total(@pytest.mark.vcr@pytest.mark.parametrize(- ("expected_net, expected_gross, voucher_amount, prices_entered_with_tax"),+ ("expected_net", "expected_gross", "voucher_amount", "prices_entered_with_tax"),[("22.32", "26.99", "0.0", True),# ("21.99", "26.73", "5.0", False),@@ -1374,7 +1374,7 @@ def test_calculate_checkout_total_with_promotion(@pytest.mark.vcr@pytest.mark.parametrize(- ("expected_net, expected_gross, voucher_amount, " "prices_entered_with_tax"),+ ("expected_net", "expected_gross", "voucher_amount", "prices_entered_with_tax"),[("4300", "5289", "0.0", False),("3493", "4297", "3.0", True),@@ -1447,7 +1447,7 @@ def test_calculate_checkout_total_for_JPY(@pytest.mark.vcr@pytest.mark.parametrize(- ("expected_net, expected_gross, voucher_amount, prices_entered_with_tax"),+ ("expected_net", "expected_gross", "voucher_amount", "prices_entered_with_tax"),[("3484", "4285", "0.0", True),("4280", "5264", "5.0", False),@@ -1558,7 +1558,7 @@ def test_calculate_checkout_total_for_JPY_with_promotion(@pytest.mark.vcr@pytest.mark.parametrize(- "expected_net, expected_gross, prices_entered_with_tax",+ ("expected_net", "expected_gross", "prices_entered_with_tax"),[("8.13", "10.00", True),("10.00", "12.30", False),@@ -1749,7 +1749,7 @@ def test_calculate_checkout_total_voucher_on_entire_order_product_without_taxes(@pytest.mark.vcr@pytest.mark.parametrize(- "expected_net, expected_gross, prices_entered_with_tax",+ ("expected_net", "expected_gross", "prices_entered_with_tax"),[("24.39", "30.00", True),("30.00", "36.90", False),@@ -1901,7 +1901,7 @@ def test_calculate_checkout_shipping(@pytest.mark.vcr@pytest.mark.parametrize(- "expected_net, expected_gross, prices_entered_with_tax",+ ("expected_net", "expected_gross", "prices_entered_with_tax"),[("40.65", "50.00", True),("50.00", "61.50", False),@@ -1950,7 +1950,7 @@ def test_calculate_checkout_subtotal(@pytest.mark.vcr@pytest.mark.parametrize(- "expected_net, expected_gross, prices_entered_with_tax",+ ("expected_net", "expected_gross", "prices_entered_with_tax"),[("25.00", "30.75", False),("20.33", "25.00", True),@@ -2122,7 +2122,7 @@ def test_calculate_checkout_subtotal_voucher_on_entire_order(@pytest.mark.vcr@pytest.mark.parametrize(- "expected_net, expected_gross, prices_entered_with_tax",+ ("expected_net", "expected_gross", "prices_entered_with_tax"),[("24.39", "30.00", True),("30.00", "36.90", False),@@ -4860,8 +4860,13 @@ def test_get_order_tax_data_raised_error(@pytest.mark.parametrize(- "shipping_address_none, shipping_method_none, billing_address_none, "- "is_shipping_required, expected_is_valid",+ (+ "shipping_address_none",+ "shipping_method_none",+ "billing_address_none",+ "is_shipping_required",+ "expected_is_valid",+ ),[(False, False, False, True, True),(True, True, False, True, False),@@ -4870,7 +4875,7 @@ def test_get_order_tax_data_raised_error((True, False, False, True, False),],)-def test_validate_adddress_details(+def test_validate_address_details(shipping_address_none,shipping_method_none,billing_address_none,@@ -4885,7 +4890,7 @@ def test_validate_adddress_details(address = shipping_address or billing_addressshipping_method = checkout_ready_to_complete.shipping_methodshipping_method = None if shipping_method_none else shipping_method- is_valid = _validate_adddress_details(+ is_valid = _validate_address_details(shipping_address, is_shipping_required, address, shipping_method)assert is_valid is expected_is_validdiff --git a/saleor/plugins/openid_connect/tests/conftest.py b/saleor/plugins/openid_connect/tests/conftest.pyindex 42ab4ba3d8..17bd4d0d8d 100644--- a/saleor/plugins/openid_connect/tests/conftest.py+++ b/saleor/plugins/openid_connect/tests/conftest.py@@ -5,7 +5,7 @@ from ...manager import get_plugins_managerfrom ..plugin import OpenIDConnectPlugindef plugin_configuration():def fun(client_id=None,@@ -123,7 +123,7 @@ def user_info_response():}def id_payload():return {"given_name": "Saleor",@@ -143,7 +143,7 @@ def id_payload():}def id_token(id_payload):private_key = """-----BEGIN RSA PRIVATE KEY-----MIIEogIBAAKCAQEAnzyis1ZjfNB0bBgKFMSvvkTtwlvBsaJq7S5wA+kzeVOVpVWwdiff --git a/saleor/plugins/openid_connect/tests/test_plugin.py b/saleor/plugins/openid_connect/tests/test_plugin.pyindex 74137ec77b..8621356584 100644--- a/saleor/plugins/openid_connect/tests/test_plugin.py+++ b/saleor/plugins/openid_connect/tests/test_plugin.py@@ -738,28 +738,27 @@ test_url = "http://saleor.io/"@pytest.mark.parametrize(- "c_id,c_secret,authorization_url,token_url,jwks_url,user_info_url",- (- ["", "ss", f"{test_url}auth", f"{test_url}token", f"{test_url}jwks", ""],- ["cc", "", f"{test_url}auth", f"{test_url}token", f"{test_url}jwks", ""],- ["cc", "123", "", f"{test_url}token", f"{test_url}jwks", ""],- ["cc", "123", f"{test_url}auth", "", f"{test_url}jwks", ""],- ["cc", "123", f"{test_url}auth", f"{test_url}token", "", ""],- [+ ("c_id", "c_secret", "authorization_url", "token_url", "jwks_url", "user_info_url"),+ [+ ("", "ss", f"{test_url}auth", f"{test_url}token", f"{test_url}jwks", ""),+ ("cc", "", f"{test_url}auth", f"{test_url}token", f"{test_url}jwks", ""),+ ("cc", "123", "", f"{test_url}token", f"{test_url}jwks", ""),+ ("cc", "123", f"{test_url}auth", "", f"{test_url}jwks", ""),+ ("cc", "123", f"{test_url}auth", f"{test_url}token", "", ""),+ ("cc","123","saleor.io/auth",f"{test_url}token",f"{test_url}token","",- ],- ["cc", "123", f"{test_url}auth", "http://", f"{test_url}token", ""],- ["cc", "123", f"{test_url}auth", "http://", f"{test_url}token", ""],- ["cc", "123", "not_url", f"{test_url}token", f"{test_url}token", ""],- ["cc", "123", "", "", "", "not_url"],- ["cc", "123", "", "", "", f"{test_url}/userinfo"],- ["cc", "123", "", "", "", ""],- ),+ ),+ ("cc", "123", f"{test_url}auth", "http://", f"{test_url}token", ""),+ ("cc", "123", "not_url", f"{test_url}token", f"{test_url}token", ""),+ ("cc", "123", "", "", "", "not_url"),+ ("cc", "123", "", "", "", f"{test_url}/userinfo"),+ ("cc", "123", "", "", "", ""),+ ],)def test_validate_plugin_configuration_raises_error(c_id,diff --git a/saleor/plugins/openid_connect/tests/test_utils.py b/saleor/plugins/openid_connect/tests/test_utils.pyindex ac765214a2..d283fc139a 100644--- a/saleor/plugins/openid_connect/tests/test_utils.py+++ b/saleor/plugins/openid_connect/tests/test_utils.py@@ -850,7 +850,7 @@ def test_jwt_token_without_expiration_claim_empty_default_channel_group(@pytest.mark.parametrize(- "email, expected_domain",+ ("email", "expected_domain"),[("[email protected]", "example.com"),("ABCd", None),diff --git a/saleor/plugins/tests/test_email_common.py b/saleor/plugins/tests/test_email_common.pyindex e3664ccfdf..e75a2efd6b 100644--- a/saleor/plugins/tests/test_email_common.py+++ b/saleor/plugins/tests/test_email_common.py@@ -15,12 +15,12 @@ from ..error_codes import PluginErrorCode@pytest.mark.parametrize("email",- (+ ["this_is_not_an_email","@","almost_correct_email@",- ),+ ],)def test_validate_default_email_configuration_bad_email(email, plugin_configuration, email_configurationdiff --git a/saleor/plugins/tests/test_manager.py b/saleor/plugins/tests/test_manager.pyindex b71fc1972b..526fb7367b 100644--- a/saleor/plugins/tests/test_manager.py+++ b/saleor/plugins/tests/test_manager.py@@ -165,7 +165,7 @@ def test_manager_get_active_plugins_without_channel_slug(@pytest.mark.parametrize(- "plugins, total_amount",+ ("plugins", "total_amount"),[(["saleor.plugins.tests.sample_plugins.PluginSample"], "1.0"), ([], "15.0")],)def test_manager_calculates_checkout_total(@@ -187,7 +187,7 @@ def test_manager_calculates_checkout_total(@pytest.mark.parametrize(- "plugins, subtotal_amount",+ ("plugins", "subtotal_amount"),[(["saleor.plugins.tests.sample_plugins.PluginSample"], "1.0"), ([], "15.0")],)def test_manager_calculates_checkout_subtotal(@@ -211,7 +211,7 @@ def test_manager_calculates_checkout_subtotal(@pytest.mark.parametrize(- "plugins, shipping_amount",+ ("plugins", "shipping_amount"),[(["saleor.plugins.tests.sample_plugins.PluginSample"], "1.0"), ([], "0.0")],)def test_manager_calculates_checkout_shipping(@@ -232,7 +232,7 @@ def test_manager_calculates_checkout_shipping(@pytest.mark.parametrize(- "plugins, shipping_amount",+ ("plugins", "shipping_amount"),[(["saleor.plugins.tests.sample_plugins.PluginSample"], "1.0"), ([], "10.0")],)def test_manager_calculates_order_shipping(order_with_lines, plugins, shipping_amount):@@ -249,7 +249,7 @@ def test_manager_calculates_order_shipping(order_with_lines, plugins, shipping_a@pytest.mark.parametrize(- "plugins, amount",+ ("plugins", "amount"),[(["saleor.plugins.tests.sample_plugins.PluginSample"], "1.0"), ([], "15.0")],)def test_manager_calculates_checkout_line_total(@@ -322,7 +322,7 @@ def test_manager_get_checkout_line_tax_rate_sample_plugin(checkout_with_item):@pytest.mark.parametrize(- "unit_price, expected_tax_rate",+ ("unit_price", "expected_tax_rate"),[(TaxedMoney(Money(12, "USD"), Money(15, "USD")), Decimal("0.25")),(Decimal("0.0"), Decimal("0.0")),@@ -362,7 +362,7 @@ def test_manager_get_order_line_tax_rate_sample_plugin(order_with_lines):@pytest.mark.parametrize(- "unit_price, expected_tax_rate",+ ("unit_price", "expected_tax_rate"),[(TaxedMoney(Money(12, "USD"), Money(15, "USD")), Decimal("0.25")),(Decimal("0.0"), Decimal("0.0")),@@ -402,7 +402,7 @@ def test_manager_get_checkout_shipping_tax_rate_sample_plugin(checkout_with_item@pytest.mark.parametrize(- "shipping_price, expected_tax_rate",+ ("shipping_price", "expected_tax_rate"),[(TaxedMoney(Money(12, "USD"), Money(14, "USD")), Decimal("0.1667")),(Decimal("0.0"), Decimal("0.0")),@@ -436,7 +436,7 @@ def test_manager_get_order_shipping_tax_rate_sample_plugin(order_with_lines):@pytest.mark.parametrize(- "shipping_price, expected_tax_rate",+ ("shipping_price", "expected_tax_rate"),[(TaxedMoney(Money(12, "USD"), Money(14, "USD")), Decimal("0.1667")),(Decimal("0.0"), Decimal("0.0")),@@ -454,7 +454,7 @@ def test_manager_get_order_shipping_tax_rate_no_plugins(@pytest.mark.parametrize(- "plugins, total_line_price, quantity",+ ("plugins", "total_line_price", "quantity"),[(["saleor.plugins.tests.sample_plugins.PluginSample"],@@ -499,7 +499,7 @@ def test_manager_calculates_checkout_line_unit_price(@pytest.mark.parametrize(- "plugins, amount",+ ("plugins", "amount"),[(["saleor.plugins.tests.sample_plugins.PluginSample"], "1.0"), ([], "12.30")],)def test_manager_calculates_order_line(order_line, plugins, amount):@@ -517,7 +517,7 @@ def test_manager_calculates_order_line(order_line, plugins, amount):@pytest.mark.parametrize(- "plugins, tax_rate_list",+ ("plugins", "tax_rate_list"),[(["saleor.plugins.tests.sample_plugins.PluginSample"],@@ -535,7 +535,7 @@ def sample_none_data(obj):@pytest.mark.parametrize(- "plugins, show_taxes",+ ("plugins", "show_taxes"),[(["saleor.plugins.tests.sample_plugins.PluginSample"], True), ([], False)],)def test_manager_show_taxes_on_storefront(plugins, show_taxes):@@ -543,7 +543,7 @@ def test_manager_show_taxes_on_storefront(plugins, show_taxes):@pytest.mark.parametrize(- "plugins, expected_tax_data",+ ("plugins", "expected_tax_data"),[([], sample_none_data),(["saleor.plugins.tests.sample_plugins.PluginSample"], sample_tax_data),@@ -563,7 +563,7 @@ def test_manager_get_taxes_for_checkout(@pytest.mark.parametrize(- "plugins, expected_tax_data",+ ("plugins", "expected_tax_data"),[([], sample_none_data),(["saleor.plugins.tests.sample_plugins.PluginSample"], sample_tax_data),@@ -1520,11 +1520,11 @@ def test_payment_method_process_tokenization(@pytest.mark.parametrize(- "allow_replica, expected_connection_name",- (+ ("allow_replica", "expected_connection_name"),+ [(True, "test replica"),(False, "test default"),- ),+ ],)def test_plugin_manager_database(allow_replica, expected_connection_name):# givendiff --git a/saleor/plugins/tests/test_views.py b/saleor/plugins/tests/test_views.pyindex 6121f7a572..8c72f17c69 100644--- a/saleor/plugins/tests/test_views.py+++ b/saleor/plugins/tests/test_views.py@@ -9,7 +9,7 @@ from .sample_plugins import (@pytest.mark.parametrize(- "plugin_id, plugin_path, status_code",+ ("plugin_id", "plugin_path", "status_code"),[(PluginSample.PLUGIN_ID, "/webhook/paid", 200),(PluginInactive.PLUGIN_ID, "/webhook/paid", 404),@@ -29,7 +29,7 @@ def test_plugin_webhook_view(@pytest.mark.parametrize(- "plugin_id, plugin_path, status_code",+ ("plugin_id", "plugin_path", "status_code"),[(PluginSample.PLUGIN_ID, "/webhook/paid", 200),(ChannelPluginSample.PLUGIN_ID, "/webhook/paid", 200),@@ -53,7 +53,7 @@ def test_plugin_per_channel_webhook_view(@pytest.mark.parametrize(- "plugin_id, plugin_path, status_code",+ ("plugin_id", "plugin_path", "status_code"),[(PluginSample.PLUGIN_ID, "/webhook/paid", 200),(PluginInactive.PLUGIN_ID, "/webhook/paid", 404),diff --git a/saleor/plugins/webhook/tests/conftest.py b/saleor/plugins/webhook/tests/conftest.pyindex 8a4600fcae..ea215bd641 100644--- a/saleor/plugins/webhook/tests/conftest.py+++ b/saleor/plugins/webhook/tests/conftest.py@@ -23,7 +23,7 @@ def webhook_plugin(settings):return factorydef available_shipping_methods_factory():def factory(num_methods=1) -> list[ShippingMethodData]:methods = []diff --git a/saleor/plugins/webhook/tests/subscription_webhooks/payloads.py b/saleor/plugins/webhook/tests/subscription_webhooks/payloads.pyindex 1da2958e7e..29cfc1dd2c 100644--- a/saleor/plugins/webhook/tests/subscription_webhooks/payloads.py+++ b/saleor/plugins/webhook/tests/subscription_webhooks/payloads.py@@ -23,17 +23,15 @@ def generate_account_events_payload(customer_user):def generate_account_requested_events_payload(customer_user, channel, new_email=None):payload = {**generate_customer_payload(customer_user),- **{- "token": "token",- "redirectUrl": "http://www.mirumee.com?token=token",- "channel": {- "slug": channel.slug,- "id": graphene.Node.to_global_id("Channel", channel.id),- }- if channel- else None,- "shop": {"domain": {"host": "mirumee.com", "url": "http://mirumee.com/"}},- },+ "token": "token",+ "redirectUrl": "http://www.mirumee.com?token=token",+ "channel": {+ "slug": channel.slug,+ "id": graphene.Node.to_global_id("Channel", channel.id),+ }+ if channel+ else None,+ "shop": {"domain": {"host": "mirumee.com", "url": "http://mirumee.com/"}},}if new_email:payload["newEmail"] = new_emaildiff --git a/saleor/plugins/webhook/tests/test_payment_webhook.py b/saleor/plugins/webhook/tests/test_payment_webhook.pyindex d02b4e2cf7..cba66b288e 100644--- a/saleor/plugins/webhook/tests/test_payment_webhook.py+++ b/saleor/plugins/webhook/tests/test_payment_webhook.py@@ -250,17 +250,17 @@ def test_send_webhook_request_with_proper_timeout(mock_post, event_delivery, appdef test_send_webhook_request_sync_invalid_scheme(webhook, app):- with pytest.raises(ValueError):- target_url = "gcpubsub://cloud.google.com/projects/saleor/topics/test"- event_payload = EventPayload.objects.create(payload="fake_content")- webhook.target_url = target_url- webhook.save()- delivery = EventDelivery.objects.create(- status="pending",- event_type=WebhookEventAsyncType.ANY,- payload=event_payload,- webhook=webhook,- )+ target_url = "gcpubsub://cloud.google.com/projects/saleor/topics/test"+ event_payload = EventPayload.objects.create(payload="fake_content")+ webhook.target_url = target_url+ webhook.save()+ delivery = EventDelivery.objects.create(+ status="pending",+ event_type=WebhookEventAsyncType.ANY,+ payload=event_payload,+ webhook=webhook,+ )+ with pytest.raises(ValueError, match="Unknown webhook scheme"):send_webhook_request_sync(delivery)@@ -447,15 +447,15 @@ def test_get_payment_gateways_for_checkout(@pytest.mark.parametrize(- "txn_kind, plugin_func_name",- (+ ("txn_kind", "plugin_func_name"),+ [(TransactionKind.AUTH, "authorize_payment"),(TransactionKind.CAPTURE, "capture_payment"),(TransactionKind.REFUND, "refund_payment"),(TransactionKind.VOID, "void_payment"),(TransactionKind.CONFIRM, "confirm_payment"),(TransactionKind.CAPTURE, "process_payment"),- ),+ ],)@mock.patch("saleor.webhook.transport.synchronous.transport.send_webhook_request_sync")def test_run_payment_webhook(diff --git a/saleor/plugins/webhook/tests/test_shipping_webhook.py b/saleor/plugins/webhook/tests/test_shipping_webhook.pyindex 74b58f4411..82bf46d5ca 100644--- a/saleor/plugins/webhook/tests/test_shipping_webhook.py+++ b/saleor/plugins/webhook/tests/test_shipping_webhook.py@@ -389,7 +389,7 @@ def test_order_shipping_methods(@pytest.mark.parametrize(- "webhook_response, expected_count",+ ("webhook_response", "expected_count"),[(lambda s: [ExcludedShippingMethod(s.id, "")], 0), (lambda s: [], 1)],)@mock.patch(diff --git a/saleor/plugins/webhook/tests/test_utils.py b/saleor/plugins/webhook/tests/test_utils.pyindex b4142c31b0..8b9bdf5e6c 100644--- a/saleor/plugins/webhook/tests/test_utils.py+++ b/saleor/plugins/webhook/tests/test_utils.py@@ -15,7 +15,7 @@ from ....webhook.transport.utils import ()def payment_method_response():return {"id": "method-1",diff --git a/saleor/plugins/webhook/tests/test_webhook.py b/saleor/plugins/webhook/tests/test_webhook.pyindex f0f0b68d92..839920cba0 100644--- a/saleor/plugins/webhook/tests/test_webhook.py+++ b/saleor/plugins/webhook/tests/test_webhook.py@@ -61,7 +61,7 @@ third_url = "http://www.example.com/third/"@pytest.mark.parametrize(- "event_name, total_webhook_calls, expected_target_urls",+ ("event_name", "total_webhook_calls", "expected_target_urls"),[(WebhookEventAsyncType.PRODUCT_CREATED, 1, {first_url}),(WebhookEventAsyncType.ORDER_FULLY_PAID, 2, {first_url, third_url}),diff --git a/saleor/plugins/webhook/tests/test_webhook_protocols.py b/saleor/plugins/webhook/tests/test_webhook_protocols.pyindex 094f054ae2..41c222cd33 100644--- a/saleor/plugins/webhook/tests/test_webhook_protocols.py+++ b/saleor/plugins/webhook/tests/test_webhook_protocols.py@@ -14,8 +14,8 @@ from ....webhook.transport.asynchronous.transport import trigger_webhooks_async@pytest.mark.parametrize(- "queue_name, additional_call_args",- (("queue_name", {}), ("queue_name.fifo", {"MessageGroupId": "mirumee.com"})),+ ("queue_name", "additional_call_args"),+ [("queue_name", {}), ("queue_name.fifo", {"MessageGroupId": "mirumee.com"})],)def test_trigger_webhooks_with_aws_sqs(queue_name,@@ -77,7 +77,7 @@ def test_trigger_webhooks_with_aws_sqs(@pytest.mark.parametrize(- "secret_key, unquoted_secret",+ ("secret_key", "unquoted_secret"),[("secret_access", "secret_access"),("secret%2B%2Faccess", "secret+/access"),diff --git a/saleor/product/tests/test_generate_and_set_variant_name.py b/saleor/product/tests/test_generate_and_set_variant_name.pyindex 4abfe30da5..074ab9d423 100644--- a/saleor/product/tests/test_generate_and_set_variant_name.py+++ b/saleor/product/tests/test_generate_and_set_variant_name.py@@ -13,7 +13,7 @@ from ..tasks import _update_variants_namesfrom ..utils.variants import generate_and_set_variant_namedef variant_with_no_attributes(category, channel_USD):"""Create a variant having no attributes, the same for the parent product."""product_type = ProductType.objects.create(diff --git a/saleor/product/tests/test_product.py b/saleor/product/tests/test_product.pyindex 24d907195d..d91547e587 100644--- a/saleor/product/tests/test_product.py+++ b/saleor/product/tests/test_product.py@@ -218,7 +218,7 @@ def test_clean_product_attributes_boolean_filter_input(boolean_attribute):@pytest.mark.parametrize(- "price, discounted_price",+ ("price", "discounted_price"),[(Decimal("10.00"), Decimal("8.00")),(Decimal("10.00"), None),@@ -379,7 +379,7 @@ def test_digital_product_view(client, digital_content_url):@pytest.mark.parametrize(- "is_user_null, is_line_null", ((False, False), (False, True), (True, True))+ ("is_user_null", "is_line_null"), [(False, False), (False, True), (True, True)])def test_digital_product_increment_download(client,@@ -456,7 +456,8 @@ def test_digital_product_view_url_expired(client, digital_content):@pytest.mark.parametrize(- "price, cost", [(Money("0", "USD"), Money("1", "USD")), (Money("2", "USD"), None)]+ ("price", "cost"),+ [(Money("0", "USD"), Money("1", "USD")), (Money("2", "USD"), None)],)def test_costs_get_margin_for_variant_channel_listing(variant, price, cost, channel_USDdiff --git a/saleor/shipping/tests/test_postal_codes.py b/saleor/shipping/tests/test_postal_codes.pyindex 861a4d78d7..db52b242e2 100644--- a/saleor/shipping/tests/test_postal_codes.py+++ b/saleor/shipping/tests/test_postal_codes.py@@ -10,19 +10,19 @@ from ..postal_codes import (@pytest.mark.parametrize(- "code, start, end, in_range",+ ("code", "start", "end", "in_range"),[- ["BH3 2BC", "BH2 1AA", "BH4 9ZZ", True],- ["BH20 2BC", "BH2 1AA", "BH4 9ZZ", False],- ["BH16 7HF", "BH16 7HA", "BH16 7HG", True],- ["BH16 7HA", "BH16 7HA", "BH16 7HB", True],- ["BH17 7HF", "BH16 7HA", "BH17 7HG", True],- ["BH15 7HF", "BH10 7HA", "BH20 7HG", True],- ["BH16 7HF", "BH16 7HA", None, True],- ["BH16 7HA", "BH16 7HA", None, True],- ["BH16 7HZ", "BH16 7HA", "BH16 7HG", False],- ["BH16 7HB", "BH16 7HC", "BH16 7HD", False],- ["BH16 7HB", "BH16 7HC", None, False],+ ("BH3 2BC", "BH2 1AA", "BH4 9ZZ", True),+ ("BH20 2BC", "BH2 1AA", "BH4 9ZZ", False),+ ("BH16 7HF", "BH16 7HA", "BH16 7HG", True),+ ("BH16 7HA", "BH16 7HA", "BH16 7HB", True),+ ("BH17 7HF", "BH16 7HA", "BH17 7HG", True),+ ("BH15 7HF", "BH10 7HA", "BH20 7HG", True),+ ("BH16 7HF", "BH16 7HA", None, True),+ ("BH16 7HA", "BH16 7HA", None, True),+ ("BH16 7HZ", "BH16 7HA", "BH16 7HG", False),+ ("BH16 7HB", "BH16 7HC", "BH16 7HD", False),+ ("BH16 7HB", "BH16 7HC", None, False),],)def test_check_postal_code_for_uk(code, start, end, in_range):@@ -30,14 +30,14 @@ def test_check_postal_code_for_uk(code, start, end, in_range):@pytest.mark.parametrize(- "code, start, end, in_range",+ ("code", "start", "end", "in_range"),[- ["IM16 7HF", "IM16 7HA", "IM16 7HG", True], # Isle of Man- ["IM16 7HZ", "IM16 7HA", "IM16 7HG", False],- ["GY16 7HF", "GY16 7HA", "GY16 7HG", True], # Jersey- ["GY16 7HZ", "GY16 7HA", "GY16 7HG", False],- ["GG16 7HF", "GG16 7HA", "GG16 7HG", True], # Guernsey- ["GG16 7HZ", "GG16 7HA", "GG16 7HG", False],+ ("IM16 7HF", "IM16 7HA", "IM16 7HG", True), # Isle of Man+ ("IM16 7HZ", "IM16 7HA", "IM16 7HG", False),+ ("GY16 7HF", "GY16 7HA", "GY16 7HG", True), # Jersey+ ("GY16 7HZ", "GY16 7HA", "GY16 7HG", False),+ ("GG16 7HF", "GG16 7HA", "GG16 7HG", True), # Guernsey+ ("GG16 7HZ", "GG16 7HA", "GG16 7HG", False),],)def test_check_postal_code_for_uk_fallbacks(code, start, end, in_range):@@ -45,11 +45,11 @@ def test_check_postal_code_for_uk_fallbacks(code, start, end, in_range):@pytest.mark.parametrize(- "code, start, end, in_range",+ ("code", "start", "end", "in_range"),[- ["A65 2F0A", "A65 2F0A", "A65 2F0A", True],- ["A65 2F0B", "A65 2F0A", "A65 2F0C", True],- ["A65 2F0B", "A65 2F0C", "A65 2F0D", False],+ ("A65 2F0A", "A65 2F0A", "A65 2F0A", True),+ ("A65 2F0B", "A65 2F0A", "A65 2F0C", True),+ ("A65 2F0B", "A65 2F0C", "A65 2F0D", False),],)def test_check_postal_code_for_ireland(code, start, end, in_range):@@ -57,11 +57,11 @@ def test_check_postal_code_for_ireland(code, start, end, in_range):@pytest.mark.parametrize(- "code, start, end, in_range",+ ("code", "start", "end", "in_range"),[- ["64-620", "50-000", "65-000", True],- ["64-620", "64-200", "64-650", True],- ["64-620", "63-200", "63-650", False],+ ("64-620", "50-000", "65-000", True),+ ("64-620", "64-200", "64-650", True),+ ("64-620", "63-200", "63-650", False),],)def test_check_postal_code_for_other_countries(code, start, end, in_range):@@ -69,11 +69,11 @@ def test_check_postal_code_for_other_countries(code, start, end, in_range):@pytest.mark.parametrize(- "country, code, start, end",+ ("country", "code", "start", "end"),[- ["IM", "IM16 7HF", "IM16 7HA", "IM16 7HG"],- ["GG", "GG16 7HF", "GG16 7HA", "GG16 7HG"],- ["JE", "GY16 7HZ", "GY16 7HA", "GY16 7HG"],+ ("IM", "IM16 7HF", "IM16 7HA", "IM16 7HG"),+ ("GG", "GG16 7HF", "GG16 7HA", "GG16 7HG"),+ ("JE", "GY16 7HZ", "GY16 7HA", "GY16 7HG"),],)@patch("saleor.shipping.postal_codes.check_uk_postal_code")@@ -84,34 +84,34 @@ def test_check_uk_islands_follow_uk_check(check_uk_mock, country, code, start, e@pytest.mark.parametrize(- "rules_result, is_applicable",+ ("rules_result", "is_applicable"),[- [{}, True],- [{Mock(inclusion_type=PostalCodeRuleInclusionType.INCLUDE): True}, True],- [{Mock(inclusion_type=PostalCodeRuleInclusionType.INCLUDE): False}, False],- [{Mock(inclusion_type=PostalCodeRuleInclusionType.EXCLUDE): True}, False],- [{Mock(inclusion_type=PostalCodeRuleInclusionType.EXCLUDE): False}, True],- [+ ({}, True),+ ({Mock(inclusion_type=PostalCodeRuleInclusionType.INCLUDE): True}, True),+ ({Mock(inclusion_type=PostalCodeRuleInclusionType.INCLUDE): False}, False),+ ({Mock(inclusion_type=PostalCodeRuleInclusionType.EXCLUDE): True}, False),+ ({Mock(inclusion_type=PostalCodeRuleInclusionType.EXCLUDE): False}, True),+ ({Mock(inclusion_type=PostalCodeRuleInclusionType.INCLUDE): True,Mock(inclusion_type=PostalCodeRuleInclusionType.INCLUDE): False,},True,- ],- [+ ),+ ({Mock(inclusion_type=PostalCodeRuleInclusionType.EXCLUDE): True,Mock(inclusion_type=PostalCodeRuleInclusionType.EXCLUDE): False,},False,- ],- [+ ),+ ({Mock(inclusion_type=PostalCodeRuleInclusionType.EXCLUDE): True,Mock(inclusion_type=PostalCodeRuleInclusionType.INCLUDE): True,},False,- ],+ ),],)@patch("saleor.shipping.postal_codes.check_shipping_method_for_postal_code")diff --git a/saleor/shipping/tests/test_shipping.py b/saleor/shipping/tests/test_shipping.pyindex 63ad836008..c8dd0e0e7c 100644--- a/saleor/shipping/tests/test_shipping.py+++ b/saleor/shipping/tests/test_shipping.py@@ -13,15 +13,15 @@ from ..utils import default_shipping_zone_exists, get_countries_without_shipping@pytest.mark.parametrize(- "price, min_price, max_price, shipping_included",- (+ ("price", "min_price", "max_price", "shipping_included"),+ [(10, 10, 20, True), # price equal min price(10, 1, 10, True), # price equal max price(9, 10, 15, False), # price just below min price(10, 1, 9, False), # price just above max price(10000000, 1, None, True), # no max price limit(10, 5, 15, True),- ),+ ],) # regular casedef test_applicable_shipping_methods_price(shipping_zone,@@ -62,15 +62,15 @@ def test_applicable_shipping_methods_price(@pytest.mark.parametrize(- "weight, min_weight, max_weight, shipping_included",- (+ ("weight", "min_weight", "max_weight", "shipping_included"),+ [(Weight(kg=1), Weight(kg=1), Weight(kg=2), True), # equal min weight(Weight(kg=10), Weight(kg=1), Weight(kg=10), True), # equal max weight(Weight(kg=5), Weight(kg=8), Weight(kg=15), False), # below min weight(Weight(kg=10), Weight(kg=1), Weight(kg=9), False), # above max weight(Weight(kg=10000000), Weight(kg=1), None, True), # no max weight limit(Weight(kg=10), Weight(kg=5), Weight(kg=15), True),- ),+ ],) # regular casedef test_applicable_shipping_methods_weight(weight, min_weight, max_weight, shipping_included, shipping_zone, channel_USD@@ -240,12 +240,10 @@ def test_applicable_shipping_methods_not_in_channel(shipping_zone, channel_USD):maximum_order_weight=Weight(kg=10),type=ShippingMethodType.WEIGHT_BASED,)- (- ShippingMethodChannelListing.objects.create(- shipping_method=weight_method,- channel=channel_USD,- currency=channel_USD.currency_code,- ),+ ShippingMethodChannelListing.objects.create(+ shipping_method=weight_method,+ channel=channel_USD,+ currency=channel_USD.currency_code,)result = ShippingMethod.objects.applicable_shipping_methods(price=Money("5.0", "USD"),diff --git a/saleor/tax/tests/test_calculations.py b/saleor/tax/tests/test_calculations.pyindex 4fbf7f7cdb..4ce1b33b8c 100644--- a/saleor/tax/tests/test_calculations.py+++ b/saleor/tax/tests/test_calculations.py@@ -8,7 +8,7 @@ from ..calculations import calculate_flat_rate_tax@pytest.mark.parametrize(- "amount, net, gross, rate, prices_entered_with_tax",+ ("amount", "net", "gross", "rate", "prices_entered_with_tax"),[("10.00", "10.00", "12.30", Decimal(23), False),("10.00", "8.13", "10.00", Decimal(23), True),diff --git a/saleor/tax/tests/test_checkout_calculations.py b/saleor/tax/tests/test_checkout_calculations.pyindex 5369ad2bcf..e70f96e799 100644--- a/saleor/tax/tests/test_checkout_calculations.py+++ b/saleor/tax/tests/test_checkout_calculations.py@@ -26,7 +26,7 @@ def _enable_flat_rates(checkout, prices_entered_with_tax):@pytest.mark.parametrize(- "expected_net, expected_gross, voucher_amount, prices_entered_with_tax",+ ("expected_net", "expected_gross", "voucher_amount", "prices_entered_with_tax"),[("40.00", "49.20", "0.0", False),("30.08", "37.00", "3.0", True),@@ -73,7 +73,7 @@ def test_calculate_checkout_total(@pytest.mark.parametrize(- "expected_net, expected_gross, voucher_amount, prices_entered_with_tax",+ ("expected_net", "expected_gross", "voucher_amount", "prices_entered_with_tax"),[("20.33", "25.00", "0.0", True),("20.00", "24.60", "5.0", False),@@ -190,7 +190,7 @@ def test_calculate_checkout_total_default_tax_rate_for_country(@pytest.mark.parametrize(- "expected_net, expected_gross, voucher_amount, prices_entered_with_tax",+ ("expected_net", "expected_gross", "voucher_amount", "prices_entered_with_tax"),[("40.00", "49.20", "0.0", False),("30.08", "37.00", "3.0", True),@@ -239,7 +239,7 @@ def test_calculate_checkout_total_with_shipping_voucher(@pytest.mark.parametrize(- "expected_net, expected_gross, voucher_amount, prices_entered_with_tax",+ ("expected_net", "expected_gross", "voucher_amount", "prices_entered_with_tax"),[("20.33", "25.00", "0.0", True),("20.00", "24.60", "5.0", False),@@ -292,7 +292,7 @@ def test_calculate_checkout_total_with_shipping_voucher_and_sale(@pytest.mark.parametrize(- "expected_net, expected_gross, prices_entered_with_tax",+ ("expected_net", "expected_gross", "prices_entered_with_tax"),[("40.65", "50.00", True),("50.00", "61.50", False),diff --git a/saleor/tests/e2e/checkout/test_checkout_calculate_correct_discount_for_sale_and_voucher.py b/saleor/tests/e2e/checkout/test_checkout_calculate_correct_discount_for_sale_and_voucher.pyindex ad0b90073c..8a8f909877 100644--- a/saleor/tests/e2e/checkout/test_checkout_calculate_correct_discount_for_sale_and_voucher.py+++ b/saleor/tests/e2e/checkout/test_checkout_calculate_correct_discount_for_sale_and_voucher.py@@ -81,9 +81,16 @@ def prepare_voucher(@pytest.mark.e2e@pytest.mark.parametrize(- "variant_price, sale_discount_value, sale_discount_type, expected_sale_discount, "- "voucher_discount_value, voucher_discount_type, expected_voucher_discount, "- "expected_unit_price",+ (+ "variant_price",+ "sale_discount_value",+ "sale_discount_type",+ "expected_sale_discount",+ "voucher_discount_value",+ "voucher_discount_type",+ "expected_voucher_discount",+ "expected_unit_price",+ ),[("19.99", 13, "PERCENTAGE", 2.60, 13, "PERCENTAGE", 2.26, 15.13),("30", 10, "FIXED", 10, 5, "FIXED", 5, 17.5),diff --git a/saleor/tests/e2e/checkout/test_checkout_with_promotion_and_voucher.py b/saleor/tests/e2e/checkout/test_checkout_with_promotion_and_voucher.pyindex 12d41893bd..4f23d6781a 100644--- a/saleor/tests/e2e/checkout/test_checkout_with_promotion_and_voucher.py+++ b/saleor/tests/e2e/checkout/test_checkout_with_promotion_and_voucher.py@@ -101,9 +101,16 @@ def prepare_voucher(@pytest.mark.e2e@pytest.mark.parametrize(- "variant_price, promotion_value, promotion_type, expected_promotion_discount, "- "voucher_discount_value, voucher_discount_type, expected_voucher_discount, "- "expected_unit_price",+ (+ "variant_price",+ "promotion_value",+ "promotion_type",+ "expected_promotion_discount",+ "voucher_discount_value",+ "voucher_discount_type",+ "expected_voucher_discount",+ "expected_unit_price",+ ),[("19.99", 13, "PERCENTAGE", 2.60, 13, "PERCENTAGE", 2.26, 15.13),("30", 10, "FIXED", 10, 5, "FIXED", 5, 17.5),diff --git a/saleor/tests/e2e/orders/test_apply_better_promotion_to_product.py b/saleor/tests/e2e/orders/test_apply_better_promotion_to_product.pyindex 3af7a4ee57..68b82091ec 100644--- a/saleor/tests/e2e/orders/test_apply_better_promotion_to_product.py+++ b/saleor/tests/e2e/orders/test_apply_better_promotion_to_product.py@@ -39,8 +39,14 @@ def prepare_promotion_with_rules(@pytest.mark.e2e@pytest.mark.parametrize(- "variant_price, first_discount_type, first_discount_value, second_discount_type, "- "second_discount_value, expected_discount",+ (+ "variant_price",+ "first_discount_type",+ "first_discount_value",+ "second_discount_type",+ "second_discount_value",+ "expected_discount",+ ),[("30", "FIXED", 5.50, "PERCENTAGE", 20, 6.00),("30", "PERCENTAGE", 11, "PERCENTAGE", 13, 3.90),diff --git a/saleor/tests/fixtures.py b/saleor/tests/fixtures.pyindex 3dd982c2b5..86c15ddedf 100644--- a/saleor/tests/fixtures.py+++ b/saleor/tests/fixtures.py@@ -246,7 +246,7 @@ def setup_dummy_gateways(settings):@pytest.fixture-def sample_gateway(settings):+def _sample_gateway(settings):settings.PLUGINS += ["saleor.plugins.tests.sample_plugins.ActiveDummyPaymentGateway"]@@ -644,7 +644,7 @@ def checkout_with_variant_without_inventory_tracking(return checkoutdef checkout_with_variants(checkout,stock,@@ -669,7 +669,7 @@ def checkout_with_variants(return checkoutdef checkout_with_shipping_address(checkout_with_variants, address):checkout = checkout_with_variants@@ -708,7 +708,7 @@ def checkout_with_variants_for_cc(return checkoutdef checkout_with_shipping_address_for_cc(checkout_with_variants_for_cc, address):checkout = checkout_with_variants_for_cc@@ -788,7 +788,7 @@ def checkout_with_gift_card(checkout_with_item, gift_card):return checkout_with_itemdef checkout_with_preorders_only(checkout,stocks_for_cc,@@ -804,7 +804,7 @@ def checkout_with_preorders_only(return checkoutdef checkout_with_preorders_and_regular_variant(checkout, stocks_for_cc, preorder_variant_with_end_date, product_variant_list):@@ -3703,6 +3703,7 @@ def product_list_with_variants_many_channel(),])+ return products@pytest.fixture@@ -6689,7 +6690,9 @@ def digital_content_url(digital_content, order_line):@pytest.fixturedef media_root(tmpdir, settings):- settings.MEDIA_ROOT = str(tmpdir.mkdir("media"))+ root = str(tmpdir.mkdir("media"))+ settings.MEDIA_ROOT = root+ return root@pytest.fixture@@ -7217,7 +7220,7 @@ def warehouses(address, address_usa, channel_USD):return warehousesdef warehouses_for_cc(address, shipping_zones, channel_USD):warehouses = Warehouse.objects.bulk_create([diff --git a/saleor/thumbnail/tests/test_utils.py b/saleor/thumbnail/tests/test_utils.pyindex ef80ee7eb1..9d7cd2f1e4 100644--- a/saleor/thumbnail/tests/test_utils.py+++ b/saleor/thumbnail/tests/test_utils.py@@ -17,7 +17,7 @@ from ..utils import (@pytest.mark.parametrize(- "size, expected_value",+ ("size", "expected_value"),[(1, 32), (16, 32), (60, 64), (80, 64), (256, 256), (8000, 4096), (15000, 4096)],)def test_get_thumbnail_size(size, expected_value):@@ -29,7 +29,7 @@ def test_get_thumbnail_size(size, expected_value):@pytest.mark.parametrize(- "file_name, size, format, expected_name",+ ("file_name", "size", "format", "expected_name"),[("test.txt", 20, None, "test_thumbnail_20.txt"),("test/test.txt", 20, None, "test/test_thumbnail_20.txt"),@@ -51,7 +51,7 @@ def test_prepare_thumbnail_file_name(file_name, size, format, expected_name):@pytest.mark.parametrize(- "size, format", [(100, "WEBP"), (1, None), (200, ""), (64, "AVIF")]+ ("size", "format"), [(100, "WEBP"), (1, None), (200, ""), (64, "AVIF")])def test_prepare_image_proxy_url(size, format, collection):# givendiff --git a/saleor/thumbnail/tests/test_validators.py b/saleor/thumbnail/tests/test_validators.pyindex dd44aacc6e..c38ee01e53 100644--- a/saleor/thumbnail/tests/test_validators.py+++ b/saleor/thumbnail/tests/test_validators.py@@ -49,7 +49,7 @@ def test_validate_image_size(image_factory):@pytest.mark.parametrize(- "size,min_size,max_size,square_required",+ ("size", "min_size", "max_size", "square_required"),[((1, 1), 10, None, False),((2, 2), None, 1, False),diff --git a/saleor/warehouse/tests/test_stock_management.py b/saleor/warehouse/tests/test_stock_management.pyindex 84c2efa013..5707432364 100644--- a/saleor/warehouse/tests/test_stock_management.py+++ b/saleor/warehouse/tests/test_stock_management.py@@ -602,7 +602,7 @@ def test_increase_stock_with_new_allocation(order_line, stock):assert allocation.quantity_allocated == 50[email protected]("quantity", (19, 20))[email protected]("quantity", [19, 20])def test_increase_allocations(quantity, allocation):order_line = allocation.order_lineorder_line_info = OrderLineInfo(@@ -712,7 +712,7 @@ def test_decrease_stock(allocation):assert allocation.quantity_allocated == 30[email protected]("quantity, expected_allocated", ((50, 30), (200, 0)))[email protected](("quantity", "expected_allocated"), [(50, 30), (200, 0)])def test_decrease_stock_without_stock_update(quantity, expected_allocated, allocation):stock = allocation.stockstock.quantity = 100diff --git a/saleor/warehouse/tests/test_tasks.py b/saleor/warehouse/tests/test_tasks.pyindex 90a62728b0..0e22b9a91d 100644--- a/saleor/warehouse/tests/test_tasks.py+++ b/saleor/warehouse/tests/test_tasks.py@@ -49,13 +49,13 @@ def test_delete_expired_reservations_task_skips_active_preorder_reservations(@pytest.mark.parametrize(- "allocation_allocated, stock_allocated, expected",- (+ ("allocation_allocated", "stock_allocated", "expected"),+ [(10, 9, 10),(9, 10, 9),(0, 9, 0),(9, 0, 9),- ),+ ],)def test_update_stocks_quantity_allocated_task(allocation_allocated, stock_allocated, expected, allocationdiff --git a/saleor/webhook/observability/payloads.py b/saleor/webhook/observability/payloads.pyindex 4694c31814..6357392061 100644--- a/saleor/webhook/observability/payloads.py+++ b/saleor/webhook/observability/payloads.py@@ -193,7 +193,7 @@ def generate_event_delivery_attempt_payload() -> EventDeliveryAttemptPayload:if not attempt.delivery:raise ValueError(- f"EventDeliveryAttempt {attempt.id} is not assigned to delivery."+ f"EventDeliveryAttempt {attempt.id} is not assigned to delivery. ""Can't generate payload.")if not attempt.delivery.payload:diff --git a/saleor/webhook/observability/tests/conftest.py b/saleor/webhook/observability/tests/conftest.pyindex 39a244fb18..4859ecaad5 100644--- a/saleor/webhook/observability/tests/conftest.py+++ b/saleor/webhook/observability/tests/conftest.py@@ -40,7 +40,7 @@ def gql_operation_factory():@pytest.fixture-def clear_cache():+def _clear_cache():yieldcache.clear()diff --git a/saleor/webhook/observability/tests/test_obfuscation.py b/saleor/webhook/observability/tests/test_obfuscation.pyindex 370affbc92..7cb4470ae4 100644--- a/saleor/webhook/observability/tests/test_obfuscation.py+++ b/saleor/webhook/observability/tests/test_obfuscation.py@@ -13,7 +13,7 @@ from ..obfuscation import (@pytest.mark.parametrize(- "headers,allowed,sensitive,expected",+ ("headers", "allowed", "sensitive", "expected"),[({}, {"header"}, {"header"}, {}),({"Header": "val"}, {}, {}, {}),@@ -40,7 +40,7 @@ def test_filter_and_hide_headers(headers, allowed, sensitive, expected):@pytest.mark.parametrize(- "url,expected",+ ("url", "expected"),[("http://example.com/test", "http://example.com/test"),(diff --git a/saleor/webhook/observability/tests/test_payloads.py b/saleor/webhook/observability/tests/test_payloads.pyindex c993aa7fa7..bcf900b7a6 100644--- a/saleor/webhook/observability/tests/test_payloads.py+++ b/saleor/webhook/observability/tests/test_payloads.py@@ -42,7 +42,7 @@ from ..utils import GraphQLOperationResponse@pytest.mark.parametrize(- "snake_payload,expected_camel",+ ("snake_payload", "expected_camel"),[(ApiCallRequest(@@ -214,7 +214,7 @@ def test_serialize_gql_operation_results_when_too_low_bytes_limit(@pytest.mark.parametrize(- "headers,expected",+ ("headers", "expected"),[({}, []),(None, []),@@ -417,7 +417,7 @@ def test_generate_event_delivery_attempt_payload_raises_error_when_no_delivery(event_attempt,):event_attempt.delivery = None- with pytest.raises(ValueError):+ with pytest.raises(ValueError, match="Can't generate payload."):generate_event_delivery_attempt_payload(event_attempt, None, 1024)@@ -425,7 +425,7 @@ def test_generate_event_delivery_attempt_payload_raises_error_when_no_payload(event_attempt,):event_attempt.delivery.payload = None- with pytest.raises(ValueError):+ with pytest.raises(ValueError, match="Can't generate payload."):generate_event_delivery_attempt_payload(event_attempt, None, 1024)diff --git a/saleor/webhook/observability/tests/test_utils.py b/saleor/webhook/observability/tests/test_utils.pyindex 6262182012..5e77ca39c3 100644--- a/saleor/webhook/observability/tests/test_utils.py+++ b/saleor/webhook/observability/tests/test_utils.py@@ -54,13 +54,13 @@ def test_request(rf):@pytest.fixture-def observability_enabled(settings):+def _observability_enabled(settings):settings.OBSERVABILITY_ACTIVE = Truesettings.OBSERVABILITY_REPORT_ALL_API_CALLS = False@pytest.fixture-def observability_disabled(settings):+def _observability_disabled(settings):settings.OBSERVABILITY_ACTIVE = Falsesettings.OBSERVABILITY_REPORT_ALL_API_CALLS = False@@ -70,7 +70,7 @@ def observability_disabled(settings):def test_get_webhooks(mocked_get_webhooks_for_event,mock_cache_get,- clear_cache,+ _clear_cache,observability_webhook,observability_webhook_data,):@@ -98,7 +98,7 @@ def test_custom_json_encoder_dumps_json_trunc_text():@pytest.mark.parametrize(- "text,limit,expected_size,expected_text,expected_truncated",+ ("text", "limit", "expected_size", "expected_text", "expected_truncated"),[("abcde", 5, 5, "abcde", False),("abó", 3, 2, "ab", True),@@ -128,7 +128,7 @@ def test_json_truncate_text_comparison():@pytest.mark.parametrize(- "retry, next_retry_date",+ ("retry", "next_retry_date"),[(Retry(), None),(Retry(when=60 * 10), datetime(1914, 6, 28, 11, tzinfo=timezone.utc)),@@ -169,14 +169,15 @@ def test_report_gql_operation_scope(test_request):@patch("saleor.webhook.observability.utils.put_event")def test_api_call_report(mock_put_event,- observability_enabled,+ _observability_enabled,patch_get_webhooks,app,api_call,test_request,):test_request.app = app- api_call.report(), api_call.report()+ api_call.report()+ api_call.report()mock_put_event.assert_called_once()@@ -184,7 +185,7 @@ def test_api_call_report(@patch("saleor.webhook.observability.utils.put_event")def test_api_call_response_report_when_observability_not_active(mock_put_event,- observability_disabled,+ _observability_disabled,patch_get_webhooks,api_call,):@@ -197,7 +198,7 @@ def test_api_call_response_report_when_observability_not_active(@patch("saleor.webhook.observability.utils.put_event")def test_api_call_response_report_when_request_not_from_app(mock_put_event,- observability_enabled,+ _observability_enabled,patch_get_webhooks,api_call,):@@ -210,7 +211,7 @@ def test_api_call_response_report_when_request_not_from_app(@patch("saleor.webhook.observability.utils.put_event")def test_api_call_response_report_when_no_gql_response(mock_put_event,- observability_enabled,+ _observability_enabled,patch_get_webhooks,api_call,):@@ -224,7 +225,7 @@ def test_api_call_response_report_when_no_gql_response(@patch("saleor.webhook.observability.utils.put_event")def test_report_event_delivery_attempt(mock_put_event,- observability_enabled,+ _observability_enabled,patch_get_webhooks,event_attempt,):@@ -235,7 +236,7 @@ def test_report_event_delivery_attempt(@patch("saleor.webhook.observability.utils.put_event")def test_report_event_delivery_attempt_not_active(mock_put_event,- observability_disabled,+ _observability_disabled,patch_get_webhooks,event_attempt,):diff --git a/saleor/webhook/tests/test_utils.py b/saleor/webhook/tests/test_utils.pyindex fbc9ded266..26d8fbc5f3 100644--- a/saleor/webhook/tests/test_utils.py+++ b/saleor/webhook/tests/test_utils.py@@ -115,7 +115,7 @@ def test_get_webhook_for_event_not_returning_any_webhook_for_sync_event_types(@pytest.mark.parametrize(- "error,event_type",+ ("error", "event_type"),[(ApiCallTruncationError,@@ -135,11 +135,9 @@ def test_truncation_error_extra_fields(err = error(operation, bytes_limit, payload_size, **kwargs)assert str(err)assert err.extra == {- **{- "observability_event_type": event_type,- "operation": operation,- "bytes_limit": bytes_limit,- "payload_size": payload_size,- },+ "observability_event_type": event_type,+ "operation": operation,+ "bytes_limit": bytes_limit,+ "payload_size": payload_size,**kwargs,}diff --git a/saleor/webhook/tests/test_webhook_payloads.py b/saleor/webhook/tests/test_webhook_payloads.pyindex a87931edde..f2b23cc7da 100644--- a/saleor/webhook/tests/test_webhook_payloads.py+++ b/saleor/webhook/tests/test_webhook_payloads.py@@ -612,7 +612,7 @@ def test_order_lines_have_all_required_fields(@pytest.mark.parametrize(- "charge_taxes, prices_entered_with_tax",+ ("charge_taxes", "prices_entered_with_tax"),[(False, False), (False, True), (True, False), (True, True)],)def test_order_lines_for_tax_calculation_have_all_required_fields(@@ -2125,7 +2125,7 @@ GROSS_AMOUNT = sentinel.GROSS_AMOUNT@pytest.mark.parametrize(- "action_type, action_value",+ ("action_type", "action_value"),[(TransactionAction.CHARGE, Decimal("5.000")),(TransactionAction.REFUND, Decimal("9.000")),@@ -2208,7 +2208,7 @@ def test_generate_transaction_action_request_payload_for_order(@pytest.mark.parametrize(- "action_type, request_type, action_value",+ ("action_type", "request_type", "action_value"),[(TransactionAction.CHARGE,diff --git a/saleor/webhook/tests/test_webhook_sample_payloads.py b/saleor/webhook/tests/test_webhook_sample_payloads.pyindex c010eb5c29..50457b809c 100644--- a/saleor/webhook/tests/test_webhook_sample_payloads.py+++ b/saleor/webhook/tests/test_webhook_sample_payloads.py@@ -31,7 +31,7 @@ def _remove_anonymized_order_data(order_data: dict) -> dict:@freezegun.freeze_time("1914-06-28 10:50", ignore=["faker"])@pytest.mark.parametrize(- "event_name, order_status",+ ("event_name", "order_status"),[(WebhookEventAsyncType.ORDER_CREATED, OrderStatus.UNFULFILLED),(WebhookEventAsyncType.ORDER_UPDATED, OrderStatus.CANCELED),diff --git a/saleor/webhook/tests/test_webhook_serializers.py b/saleor/webhook/tests/test_webhook_serializers.pyindex 2d42dd14fb..6168d098f4 100644--- a/saleor/webhook/tests/test_webhook_serializers.py+++ b/saleor/webhook/tests/test_webhook_serializers.py@@ -159,7 +159,7 @@ def test_serialize_checkout_lines_with_promotion(checkout_with_item_on_promotion@pytest.mark.parametrize(- "charge_taxes, prices_entered_with_tax",+ ("charge_taxes", "prices_entered_with_tax"),[(False, False), (False, True), (True, False), (True, True)],)def test_serialize_checkout_lines_for_tax_calculation(diff --git a/saleor/webhook/tests/test_webhook_validators.py b/saleor/webhook/tests/test_webhook_validators.pyindex 1b794064fb..1d941d2dd6 100644--- a/saleor/webhook/tests/test_webhook_validators.py+++ b/saleor/webhook/tests/test_webhook_validators.py@@ -9,7 +9,7 @@ from ..validators import (@pytest.mark.parametrize(- "headers,err_msg",+ ("headers", "err_msg"),[({diff --git a/setup.cfg b/setup.cfgindex 53716fd7b9..79859aa410 100644--- a/setup.cfg+++ b/setup.cfg@@ -27,22 +27,6 @@ markers =integratione2e-[flake8]-exclude =- .*/,- __pycache__/,- node_modules/,- */migrations/-extend-ignore = E203-ignore = H101,H238,H301,H306,W503-max-complexity = 31-max-line-length = 88--[pydocstyle]-ignore = D100, D101, D102, D103, D104, D105, D106, D107, D203, D213, D407, D202-inherit = false-match-dir = saleor-[mypy]allow_untyped_globals = Trueallow_redefinition = True