[Django14/el6] add forgotten patch
Matthias Runge
mrunge at fedoraproject.org
Thu Aug 15 11:54:16 UTC 2013
commit 32a9565c95372d7889350c95170c86b2303a9759
Author: Matthias Runge <mrunge at redhat.com>
Date: Thu Aug 15 13:53:53 2013 +0200
add forgotten patch
...validation-example-com-is-available-https.patch | 25 ++++++++++++++++++++
1 files changed, 25 insertions(+), 0 deletions(-)
---
diff --git a/Django-1.4-fix-validation-example-com-is-available-https.patch b/Django-1.4-fix-validation-example-com-is-available-https.patch
new file mode 100644
index 0000000..ee2994d
--- /dev/null
+++ b/Django-1.4-fix-validation-example-com-is-available-https.patch
@@ -0,0 +1,25 @@
+From 08e5fcb3e641f7f0af873910117a4951fb2719b7 Mon Sep 17 00:00:00 2001
+From: Florian Apolloner <florian at apolloner.eu>
+Date: Tue, 13 Aug 2013 22:34:52 +0200
+Subject: [PATCH] Fixed regression in validation tests since example.com is
+ available via https now.
+
+---
+ tests/modeltests/validation/tests.py | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/tests/modeltests/validation/tests.py b/tests/modeltests/validation/tests.py
+index 5c94f43..3078089 100644
+--- a/tests/modeltests/validation/tests.py
++++ b/tests/modeltests/validation/tests.py
+@@ -85,6 +85,7 @@ def test_correct_url_with_redirect(self):
+ mtv = ModelToValidate(number=10, name='Some Name', url_verify='http://qa-dev.w3.org/link-testsuite/http.php?code=301') #example.com is a redirect to iana.org now
+ self.assertEqual(None, mtv.full_clean()) # This will fail if there's no Internet connection
+
++ @verify_exists_urls(existing_urls=())
+ def test_correct_https_url_but_nonexisting(self):
+ mtv = ModelToValidate(number=10, name='Some Name', url_verify='https://www.example.com/')
+ self.assertFieldFailsValidationWithMessage(mtv.full_clean, 'url_verify', [u'This URL appears to be a broken link.'])
+--
+1.8.1.6
+
More information about the scm-commits
mailing list