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

Method test_cli

tests/test_route.py:196–198  ·  view source on GitHub ↗

Test to ensure you can dynamically create a CLI route attached to a hug API

(self)

Source from the content-addressed store, hash-verified

194 assert self.router.exception().route == ExceptionRouter(api=api).route
195
196 def test_cli(self):
197 """Test to ensure you can dynamically create a CLI route attached to a hug API"""
198 assert self.router.cli().route == CLIRouter(api=api).route
199
200 def test_object(self):
201 """Test to ensure it's possible to route objects through a specified API instance"""

Callers

nothing calls this directly

Calls 2

CLIRouterClass · 0.90
cliMethod · 0.45

Tested by

no test coverage detected