Skip to content

Commit 40ffe40

Browse files
committed
fixup! feat(dev): add local api test runner
1 parent 6879b11 commit 40ffe40

2 files changed

Lines changed: 0 additions & 5 deletions

File tree

api/api/settings_quick_test.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@
1717
},
1818
}
1919

20-
test_db_name = os.environ.get("DESECSTACK_DJANGO_TEST_DB_NAME")
21-
if test_db_name:
22-
DATABASES["default"]["TEST"] = {"NAME": test_db_name}
23-
2420
# avoid computationally expensive password hashing for tests
2521
PASSWORD_HASHERS = [
2622
"django.contrib.auth.hashers.MD5PasswordHasher",

run-api-tests-stack.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ $COMPOSE up -d dbapi
142142
if [[ "$PROD_DB" -eq 1 ]]; then
143143
download_prod_dbapi
144144
restore_dbapi_from_cache
145-
export DESECSTACK_DJANGO_TEST_DB_NAME=desec
146145
test_args+=(--keepdb)
147146
fi
148147
python3 manage.py test "${test_args[@]}"

0 commit comments

Comments
 (0)