Skip to content

Commit fa7f567

Browse files
committed
make atlas tests use encryption settings
1 parent 24c86e1 commit fa7f567

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/runtests.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@
2525
else:
2626
test_apps.extend(["gis_tests", "gis_tests_"])
2727

28+
settings_module = os.environ.get("DJANGO_SETTINGS_MODULE", "mongodb_settings")
2829
runtests = pathlib.Path(__file__).parent.resolve() / "runtests.py"
29-
run_tests_cmd = f"python3 {runtests} %s --settings mongodb_settings -v 2"
30+
run_tests_cmd = f"python3 {runtests} %s --settings {settings_module} -v 2"
3031

3132
shouldFail = False
3233
for app_name in test_apps:

.github/workflows/test-python-atlas.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ defaults:
1717
shell: bash -eux {0}
1818

1919
jobs:
20+
env:
21+
DJANGO_SETTINGS_MODULE: "encryption_settings"
2022
build:
2123
name: Django Test Suite
2224
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)