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

Method test_transform

tests/test_routing.py:57–61  ·  view source on GitHub ↗

Test to ensure changing the transformation on the fly works as expected

(self)

Source from the content-addressed store, hash-verified

55 assert new_route.route["transform"] == "transformed"
56
57 def test_transform(self):
58 """Test to ensure changing the transformation on the fly works as expected"""
59 new_route = self.route.transform("transformed")
60 assert new_route != self.route
61 assert new_route.route["transform"] == "transformed"
62
63 def test_validate(self):
64 """Test to ensure overriding the secondary validation method works as expected"""

Callers

nothing calls this directly

Calls 1

transformMethod · 0.80

Tested by

no test coverage detected