Skip to content

Commit

Permalink
Make tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiask committed Aug 9, 2024
1 parent cb820cf commit a1ef083
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion accounts/test_login.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ def test_server_flow_user_data_failure(self):
FakeFlow.EMAIL = "[email protected]"
FakeFlow.RAISE_EXCEPTION = True

response = self.client.get("/accounts/google-sso/?code=x")
response = self.client.get(
"/accounts/google-sso/?code=x", headers={"accept-language": "de"}
)
self.assertRedirects(response, "/accounts/login/")
self.assertEqual(
messages(response),
Expand Down
2 changes: 1 addition & 1 deletion app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
SECRET_KEY = env("SECRET_KEY", required=True)

TIME_ZONE = "Europe/Zurich"
LANGUAGE_CODE = "de"
LANGUAGE_CODE = "en"
LANGUAGES = (
("en", _("English")),
("de", _("German")),
Expand Down

0 comments on commit a1ef083

Please sign in to comment.