Skip to content

Commit

Permalink
Exclude length_is tests when using Django 5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ronanboiteau committed Jun 4, 2024
1 parent e2e8914 commit 3c4690f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/filters/test_trusted_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,12 @@ def test_trust_json_script(self):

# TODO: Write test for last

def test_trust_length_is(self):
expected = "True"
result = self._render('{{ "abcd"|length_is:"4" }}')
assert result == expected
if VERSION <= (5, 1):

def test_trust_length_is(self):
expected = "True"
result = self._render('{{ "abcd"|length_is:"4" }}')
assert result == expected

# TODO: Write test for length
# TODO: Write test for linebreaks
Expand Down

0 comments on commit 3c4690f

Please sign in to comment.