summaryrefslogtreecommitdiff
path: root/patchwork
diff options
context:
space:
mode:
authorStephen Finucane <stephen@that.guru>2018-12-06 14:41:10 +0000
committerStephen Finucane <stephen@that.guru>2018-12-22 17:19:06 +0000
commit2f6db345d9c220a28f83f6c3d6518331e0b46ebd (patch)
tree305f943442da371872ae10830b15f42070658051 /patchwork
parent5cda676284eb6adccbc65e11624699789388a04e (diff)
downloadpatchwork-2f6db345d9c220a28f83f6c3d6518331e0b46ebd.tar
patchwork-2f6db345d9c220a28f83f6c3d6518331e0b46ebd.tar.gz
tests: Use valid URLs
Signed-off-by: Stephen Finucane <stephen@that.guru>
Diffstat (limited to 'patchwork')
-rw-r--r--patchwork/tests/api/test_project.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/patchwork/tests/api/test_project.py b/patchwork/tests/api/test_project.py
index c1eb3de..77ac0b4 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."""