From d1e4347cb2ae77e01b9b7cedb7477ccdab360ea3 Mon Sep 17 00:00:00 2001 From: Greg Price Date: Mon, 6 Nov 2023 11:51:04 -0800 Subject: [PATCH] push_notifs: Keep APNS_CERT_FILE as None in tests. In 0b3f7a5a6 we started automatically setting this in dev if we found a cert file in an appropriate place. But for running tests, we don't want such variability. Set it back to None there. --- zproject/test_extra_settings.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zproject/test_extra_settings.py b/zproject/test_extra_settings.py index 067c9ca026..877541584e 100644 --- a/zproject/test_extra_settings.py +++ b/zproject/test_extra_settings.py @@ -156,6 +156,9 @@ INLINE_URL_EMBED_PREVIEW = False HOME_NOT_LOGGED_IN = "/login/" LOGIN_URL = "/accounts/login/" +# If dev_settings.py found a cert file to use here, ignore it. +APNS_CERT_FILE: Optional[str] = None + # By default will not send emails when login occurs. # Explicitly set this to True within tests that must have this on. SEND_LOGIN_EMAILS = False