Skip to content

Commit

Permalink
Update test_internationalization.py by Ruff
Browse files Browse the repository at this point in the history
Signed-off-by: Laurens Weijs <[email protected]>
  • Loading branch information
laurensWe authored Jul 15, 2024
1 parent 8551de9 commit 22ca006
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/core/test_internationalization.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ def test_warning_get_dynamic_field_translations(caplog: pytest.LogCaptureFixture

def test_get_translation(caplog: pytest.LogCaptureFixture):
translation = get_translation("en")
assert type(translation) == Translations
assert type(translation) is Translations


def test_warning_get_translation(caplog: pytest.LogCaptureFixture):
translation = get_translation("ar")
assert caplog.records[0].message == "Requested translation does not exist: ar, using fallback en"
assert type(translation) == Translations
assert type(translation) is Translations


def test_format_datetime():
Expand Down

0 comments on commit 22ca006

Please sign in to comment.