Skip to content

Commit

Permalink
Don't look at user's AWS config when running tests
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 Mar 11, 2024
1 parent 70fa8d9 commit ea2d52f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ setenv =
DJANGO_SETTINGS_MODULE = tests.settings
PYTHONWARNINGS = always
PYTHONDONTWRITEBYTECODE = 1
# 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
Expand Down

0 comments on commit ea2d52f

Please sign in to comment.