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

Method test_version

tests/test_routing.py:168–174  ·  view source on GitHub ↗

Test to ensure changing the version of a LocalRoute on the fly works

(self)

Source from the content-addressed store, hash-verified

166 assert "skip_directives" in route.route
167
168 def test_version(self):
169 """Test to ensure changing the version of a LocalRoute on the fly works"""
170 assert "version" not in self.route.route
171
172 route = self.route.version(2)
173 assert "version" in route.route
174 assert route.route["version"] == 2
175
176
177class TestHTTPRouter(TestInternalValidation):

Callers

nothing calls this directly

Calls 1

versionMethod · 0.45

Tested by

no test coverage detected