MCPcopy Index your code
hub / github.com/hugapi/hug / test_api

Method test_api

tests/test_routing.py:67–71  ·  view source on GitHub ↗

Test to ensure changing the API associated with the route works as expected

(self)

Source from the content-addressed store, hash-verified

65 assert self.route.validate(str).route["validate"] == str
66
67 def test_api(self):
68 """Test to ensure changing the API associated with the route works as expected"""
69 new_route = self.route.api("new")
70 assert new_route != self.route
71 assert new_route.route["api"] == "new"
72
73 def test_requires(self):
74 """Test to ensure requirements can be added on the fly"""

Callers

nothing calls this directly

Calls 1

apiMethod · 0.45

Tested by

no test coverage detected