Skip to content

Commit

Permalink
Fix l10n call...
Browse files Browse the repository at this point in the history
  • Loading branch information
MelissaAutumn committed Apr 24, 2024
1 parent 805879e commit 8c03ecf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/test/integration/test_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def test_fxa_callback(self, with_db, with_client, monkeypatch):
assert fxa
assert fxa.type_id == FXA_CLIENT_PATCH.get('external_connection_type_id')

def test_fxa_callback_with_mismatch_uid(self, with_db, with_client, monkeypatch, make_external_connections, make_basic_subscriber):
def test_fxa_callback_with_mismatch_uid(self, with_db, with_client, monkeypatch, make_external_connections, make_basic_subscriber, with_l10n):
"""Test that our fxa callback will throw an invalid-credentials error if the incoming fxa uid doesn't match any existing ones."""
os.environ['AUTH_SCHEME'] = 'fxa'

Expand Down Expand Up @@ -120,4 +120,4 @@ def test_fxa_callback_with_mismatch_uid(self, with_db, with_client, monkeypatch,
# This should error out as a 400
assert response.status_code == 403, response.text
# This will just key match due to the lack of context.
assert response.json().get('detail') == 'invalid-credentials'
assert response.json().get('detail') == l10n('invalid-credentials')

0 comments on commit 8c03ecf

Please sign in to comment.