MCPcopy
hub / github.com/hugapi/hug / test_version

Method test_version

tests/test_routing.py:104–110  ·  view source on GitHub ↗

Test to ensure the version can be replaced on the fly

(self)

Source from the content-addressed store, hash-verified

102 assert new_route.route["output"] == "output"
103
104 def test_version(self):
105 """Test to ensure the version can be replaced on the fly"""
106 new_route = self.route.version(2)
107 assert new_route != self.route
108 assert new_route.route["version"] == 2
109 assert new_route.route["transform"] == "transform"
110 assert new_route.route["output"] == "output"
111
112 def test_doc(self):
113 """Test to ensure the documentation can be replaced on the fly"""

Callers

nothing calls this directly

Calls 1

versionMethod · 0.45

Tested by

no test coverage detected