From: Stephen Finucane Date: Thu, 6 Dec 2018 14:41:10 +0000 (+0000) Subject: tests: Use valid URLs X-Git-Tag: v2.2.0-rc1~197 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f6db345d9c220a28f83f6c3d6518331e0b46ebd;p=thirdparty%2Fpatchwork.git tests: Use valid URLs Signed-off-by: Stephen Finucane --- diff --git a/patchwork/tests/api/test_project.py b/patchwork/tests/api/test_project.py index c1eb3ded..77ac0b4a 100644 --- a/patchwork/tests/api/test_project.py +++ b/patchwork/tests/api/test_project.py @@ -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."""