Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
tests: Rename APPLE_JWK to a generic name for re-use in other tests.
Mateusz Manderacd88a6e6fba6
diff --git a/zerver/tests/fixtures/apple/jwk b/zerver/tests/fixtures/example_jwksimilarity index 100%rename from zerver/tests/fixtures/apple/jwkrename to zerver/tests/fixtures/example_jwkdiff --git a/zerver/tests/test_auth_backends.py b/zerver/tests/test_auth_backends.pyindex 891f8106c09..7e816d73bdc 100644--- a/zerver/tests/test_auth_backends.py+++ b/zerver/tests/test_auth_backends.py@@ -2533,7 +2533,7 @@ class AppleIdAuthBackendTest(AppleAuthMixin, SocialAuthBase):requests_mock.GET,self.BACKEND_CLASS.JWK_URL,status=200,- json=json.loads(settings.APPLE_JWK),+ json=json.loads(settings.EXAMPLE_JWK),)def generate_access_url_payload(self, account_data_dict: Dict[str, str]) -> str:@@ -2732,7 +2732,7 @@ class AppleAuthBackendNativeFlowTest(AppleAuthMixin, SocialAuthBase):requests_mock.GET,self.BACKEND_CLASS.JWK_URL,status=200,- json=json.loads(settings.APPLE_JWK),+ json=json.loads(settings.EXAMPLE_JWK),)yielddiff --git a/zproject/test_extra_settings.py b/zproject/test_extra_settings.pyindex fe76a6ef09a..102a3bb9d4e 100644--- a/zproject/test_extra_settings.py+++ b/zproject/test_extra_settings.py@@ -188,7 +188,7 @@ SOCIAL_AUTH_APPLE_KEY = "KEYISKEY"SOCIAL_AUTH_APPLE_TEAM = "TEAMSTRING"SOCIAL_AUTH_APPLE_SECRET = get_from_file_if_exists("zerver/tests/fixtures/apple/private_key.pem")-APPLE_JWK = get_from_file_if_exists("zerver/tests/fixtures/apple/jwk")+EXAMPLE_JWK = get_from_file_if_exists("zerver/tests/fixtures/example_jwk")APPLE_ID_TOKEN_GENERATION_KEY = get_from_file_if_exists("zerver/tests/fixtures/apple/token_gen_private_key")