From 3ffe505f290b23eee68d7ecd5398abead3ec7bf6 Mon Sep 17 00:00:00 2001 From: Daryl Date: Thu, 30 Jun 2016 11:29:35 +1200 Subject: [PATCH] Wrong method to test the url Forgot that Travis urls have the 'http://testserver' part at the front --- helpdesk/tests/test_savequery.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpdesk/tests/test_savequery.py b/helpdesk/tests/test_savequery.py index 416fd4d0..2e0786b1 100644 --- a/helpdesk/tests/test_savequery.py +++ b/helpdesk/tests/test_savequery.py @@ -21,6 +21,6 @@ class TestSavingSharedQuery(TestCase): 'shared':'on', 'query_encoded':'KGRwMApWZmlsdGVyaW5nCnAxCihkcDIKVnN0YXR1c19faW4KcDMKKGxwNApJMQphSTIKYUkzCmFzc1Zzb3J0aW5nCnA1ClZjcmVhdGVkCnA2CnMu'}) self.assertEqual(response.status_code, 302) - self.assertEqual(response.url, '/helpdesk/tickets/?saved_query=1') + self.assertTrue('/helpdesk/tickets/?saved_query=1' in response.url)