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

Method test_map_params

tests/test_routing.py:77–79  ·  view source on GitHub ↗

Test to ensure it is possible to set param mappings on the routing object

(self)

Source from the content-addressed store, hash-verified

75 assert self.route.requires(("values",)).route["requires"] == ("values",)
76
77 def test_map_params(self):
78 """Test to ensure it is possible to set param mappings on the routing object"""
79 assert self.route.map_params(id="user_id").route["map_params"] == {"id": "user_id"}
80
81 def test_where(self):
82 """Test to ensure `where` can be used to replace all arguments on the fly"""

Callers

nothing calls this directly

Calls 1

map_paramsMethod · 0.80

Tested by

no test coverage detected