MCPcopy Create free account
hub / github.com/python-hyper/uritemplate / test_partial

Method test_partial

tests/test_uritemplate.py:623–629  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

621 )
622
623 def test_partial(self) -> None:
624 self.assertEqual(partial(self.uri), URITemplate(self.uri))
625 uri = self.uri + "/sigmavirus24{/other}"
626 self.assertEqual(
627 partial(uri, endpoint="users"),
628 URITemplate("https://api.github.com/users/sigmavirus24{/other}"),
629 )
630
631 def test_variables(self) -> None:
632 self.assertEqual(

Callers

nothing calls this directly

Calls 2

partialFunction · 0.90
URITemplateClass · 0.90

Tested by

no test coverage detected