]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
tests: Use valid URLs
authorStephen Finucane <stephen@that.guru>
Thu, 6 Dec 2018 14:41:10 +0000 (14:41 +0000)
committerStephen Finucane <stephen@that.guru>
Sat, 22 Dec 2018 17:19:06 +0000 (17:19 +0000)
Signed-off-by: Stephen Finucane <stephen@that.guru>
patchwork/tests/api/test_project.py

index c1eb3ded3f0a7cf40739a56f0bc7dfca3f00e917..77ac0b4aadfaf732a2eeb60e899a9e138785b3b3 100644 (file)
@@ -160,7 +160,7 @@ class TestProjectAPI(APITestCase):
         Ensure updates can only be performed by maintainers.
         """
         project = create_project()
-        data = {'web_url': 'TEST'}
+        data = {'web_url': 'https://example.com/test'}
 
         # an anonymous user
         resp = self.client.patch(self.api_url(project.id), data)
@@ -173,7 +173,7 @@ class TestProjectAPI(APITestCase):
         Ensure updates can only be performed by maintainers.
         """
         project = create_project()
-        data = {'web_url': 'TEST'}
+        data = {'web_url': 'https://example.com/test'}
 
         user = create_user()
         self.client.force_authenticate(user=user)
@@ -187,13 +187,13 @@ class TestProjectAPI(APITestCase):
         Ensure updates can only be performed by maintainers.
         """
         project = create_project()
-        data = {'web_url': 'TEST'}
+        data = {'web_url': 'https://example.com/test'}
 
         user = create_maintainer(project)
         self.client.force_authenticate(user=user)
         resp = self.client.patch(self.api_url(project.id), data)
         self.assertEqual(status.HTTP_200_OK, resp.status_code)
-        self.assertEqual(resp.data['web_url'], 'TEST')
+        self.assertEqual(resp.data['web_url'], 'https://example.com/test')
 
     def test_update_readonly_field(self):
         """Update read-only fields."""