diff options
author | 2021-03-26 19:47:20 +0100 | |
---|---|---|
committer | 2021-03-26 19:47:20 +0100 | |
commit | 6fc8cdbd823abec4859a83662e50aefcaea84383 (patch) | |
tree | f96ab8c0297717efe3805b081f7cf4db72abbb16 /pydis_site/apps/api | |
parent | Ensure the base url ends with a slash (diff) |
Update tests to use trailing slashes on valid urls
Diffstat (limited to 'pydis_site/apps/api')
-rw-r--r-- | pydis_site/apps/api/tests/test_documentation_links.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pydis_site/apps/api/tests/test_documentation_links.py b/pydis_site/apps/api/tests/test_documentation_links.py index 72e5cadb..39fb08f3 100644 --- a/pydis_site/apps/api/tests/test_documentation_links.py +++ b/pydis_site/apps/api/tests/test_documentation_links.py @@ -60,7 +60,7 @@ class DetailLookupDocumentationLinkAPITests(APISubdomainTestCase): def setUpTestData(cls): cls.doc_link = DocumentationLink.objects.create( package='testpackage', - base_url='https://example.com', + base_url='https://example.com/', inventory_url='https://example.com' ) @@ -126,7 +126,7 @@ class DocumentationLinkCreationTests(APISubdomainTestCase): self.body = { 'package': 'example', - 'base_url': 'https://example.com', + 'base_url': 'https://example.com/', 'inventory_url': 'https://docs.example.com' } |