Skip to content
Snippets Groups Projects
Commit 78f87ef194af authored by Arnaud Vergnet's avatar Arnaud Vergnet :sun_with_face:
Browse files

test: add test for custom api prefix

parent b89fbb57896e
No related branches found
No related tags found
1 merge request!62tests: improve coverage
......@@ -46,6 +46,21 @@
)
class ApiMountedCustomPrefixTC(ApiBaseTC):
settings = {
"cubicweb.includes": ["cubicweb.pyramid.auth"],
"cubicweb_api.enable_login_route": "yes",
"cubicweb_api.api_path_prefix": "custom/url",
}
def test_served_on_base_url_path(self):
self.webapp.get(
"https://testing.cubicweb/custom/url/v1/schema",
headers=self.custom_headers,
status=200,
)
if __name__ == "__main__":
from unittest import main
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment