Skip to content

Commit

Permalink
Don't look at user's AWS config when running tests (#1362)
Browse files Browse the repository at this point in the history
If you set up a different config file locally and then run tests, the
tests easily fail, and who knows what it's doing with user's credentials
:/
  • Loading branch information
craigds committed Apr 21, 2024
1 parent 7d83921 commit 0765aa8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tox.ini
Expand Up @@ -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
Expand Down

0 comments on commit 0765aa8

Please sign in to comment.