diff --git a/tox.ini b/tox.ini index 14c69ce2..f1d179e3 100644 --- a/tox.ini +++ b/tox.ini @@ -13,7 +13,10 @@ setenv = DJANGO_SETTINGS_MODULE = tests.settings PYTHONWARNINGS = always PYTHONDONTWRITEBYTECODE = 1 -commands = pytest --cov=storages {posargs} + # Use a non-existent file to prevent boto3 from loading + # any configuration from the user's environment + AWS_CONFIG_FILE = {toxinidir}/tests/no_such_file.conf +commands = pytest --cov=storages tests/ {posargs} deps = cryptography django3.2: django~=3.2.9