We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f50963 commit f757520Copy full SHA for f757520
tests/test_templatetags.py
@@ -1,5 +1,6 @@
1
import unittest
2
3
+import django
4
from django.template import Context, Template
5
from django.test import TestCase, override_settings
6
from django.utils.html import urlize
@@ -250,6 +251,8 @@ def test_issue_1386(self):
250
251
"asdf.net",
252
"www.as_df.org",
253
]
254
+ if django.VERSION < (5, 3):
255
+ correct_urls.append("as.d8f.ghj8.gov")
256
for i in correct_urls:
257
res = urlize(i)
258
self.assertNotEqual(res, i)
@@ -259,6 +262,8 @@ def test_issue_1386(self):
259
262
"mailto://[email protected]",
260
263
"asdf.netnet",
261
264
265
+ if django.VERSION >= (5, 3):
266
+ incorrect_urls.append("as.d8f.ghj8.gov")
267
for i in incorrect_urls:
268
269
self.assertEqual(i, res)
0 commit comments