From 1e1bfd54a70d5ba45b4f0dcef4e5fe6be2d389db Mon Sep 17 00:00:00 2001 From: Josh Schneier Date: Fri, 15 Mar 2024 19:11:38 -0400 Subject: [PATCH] Pin moto dependency due to breaking changes (#1365) --- tox.ini | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index aecb5ef2..14c69ce2 100644 --- a/tox.ini +++ b/tox.ini @@ -13,7 +13,7 @@ setenv = DJANGO_SETTINGS_MODULE = tests.settings PYTHONWARNINGS = always PYTHONDONTWRITEBYTECODE = 1 -commands = pytest --cov=storages tests/ {posargs} +commands = pytest --cov=storages {posargs} deps = cryptography django3.2: django~=3.2.9 @@ -21,7 +21,7 @@ deps = django4.2: django~=4.2.0 django5.0: django~=5.0b1 djangomain: https://github.com/django/django/archive/main.tar.gz - moto + moto<5 pytest pytest-cov rsa @@ -41,3 +41,9 @@ commands = ruff . black --check . skip_install = true + + +[pytest] +# Default test paths to run, if no other paths are specified on the CLI +# (specify paths after a -- e.g. `tox -- tests/test_s3.py`) +testpaths = tests/