-
-
Notifications
You must be signed in to change notification settings - Fork 7k
adding django6.0b1 support #9819
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 11 commits
02ab0c9
2ba9c89
3a513bc
6e828f8
3c23f56
1f50963
f757520
71cac84
813ee9d
d68ca12
88de7cf
aeda9ff
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,8 @@ | ||
| import unittest | ||
|
|
||
| import django | ||
| from django.template import Context, Template | ||
| from django.test import TestCase | ||
| from django.test import TestCase, override_settings | ||
| from django.utils.html import urlize | ||
|
|
||
| from rest_framework.compat import coreapi, coreschema | ||
|
|
@@ -240,6 +241,7 @@ class Issue1386Tests(TestCase): | |
| Covers #1386 | ||
| """ | ||
|
|
||
| @override_settings(URLIZE_ASSUME_HTTPS=True) | ||
| def test_issue_1386(self): | ||
| """ | ||
| Test function urlize with different args | ||
|
|
@@ -248,8 +250,9 @@ def test_issue_1386(self): | |
| "asdf.com", | ||
| "asdf.net", | ||
| "www.as_df.org", | ||
| "as.d8f.ghj8.gov", | ||
| ] | ||
| if django.VERSION < (5, 3): | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we should keep this check for a while
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we wait for 6.0b2 to be released? At that point we should no longer need it (there was a regression in Django, which has been fixed now)
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we can wait bor dj b2 or rc1. yes I saw the fix for the regression.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @browniebroke I ran the tests against main branch, But still showing Incorrect url. Idk why this is happening.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK I checked it. It is passing for django main now. failing for django6.0b1. Thanks.
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it will be backported to 6.0.x soon
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To provide a reference, I believe the fix being discussed is django/django@ca82428 |
||
| correct_urls.append("as.d8f.ghj8.gov") | ||
| for i in correct_urls: | ||
| res = urlize(i) | ||
| self.assertNotEqual(res, i) | ||
|
|
@@ -259,6 +262,8 @@ def test_issue_1386(self): | |
| "mailto://asdf@fdf.com", | ||
| "asdf.netnet", | ||
| ] | ||
| if django.VERSION >= (5, 3): | ||
| incorrect_urls.append("as.d8f.ghj8.gov") | ||
| for i in incorrect_urls: | ||
| res = urlize(i) | ||
| self.assertEqual(i, res) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.