Skip to content

Commit a1ef083

Browse files
committed
Make tests pass
1 parent cb820cf commit a1ef083

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

accounts/test_login.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,9 @@ def test_server_flow_user_data_failure(self):
134134
FakeFlow.EMAIL = "[email protected]"
135135
FakeFlow.RAISE_EXCEPTION = True
136136

137-
response = self.client.get("/accounts/google-sso/?code=x")
137+
response = self.client.get(
138+
"/accounts/google-sso/?code=x", headers={"accept-language": "de"}
139+
)
138140
self.assertRedirects(response, "/accounts/login/")
139141
self.assertEqual(
140142
messages(response),

app/settings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
SECRET_KEY = env("SECRET_KEY", required=True)
3636

3737
TIME_ZONE = "Europe/Zurich"
38-
LANGUAGE_CODE = "de"
38+
LANGUAGE_CODE = "en"
3939
LANGUAGES = (
4040
("en", _("English")),
4141
("de", _("German")),

0 commit comments

Comments
 (0)