MCPcopy Create free account
hub / github.com/hugapi/hug / test_output

Method test_output

tests/test_routing.py:50–55  ·  view source on GitHub ↗

Test to ensure modifying the output argument has the desired effect

(self)

Source from the content-addressed store, hash-verified

48 assert "api" not in self.route.route
49
50 def test_output(self):
51 """Test to ensure modifying the output argument has the desired effect"""
52 new_route = self.route.output("test data", transform="transformed")
53 assert new_route != self.route
54 assert new_route.route["output"] == "test data"
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"""

Callers

nothing calls this directly

Calls 1

outputMethod · 0.45

Tested by

no test coverage detected