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

Method _get_test

tests/test_from_fixtures.py:42–49  ·  view source on GitHub ↗
(
        self, section: str
    )

Source from the content-addressed store, hash-verified

40 examples: Examples
41
42 def _get_test(
43 self, section: str
44 ) -> t.Tuple[ExampleVariables, ExampleTemplatesAndResults]:
45 test = t.cast(ExampleWithVariables, self.examples.get(section, {}))
46 return (
47 test.get("variables", {}),
48 test.get("testcases", []),
49 )
50
51 def _test(self, testname: str) -> None:
52 variables, testcases = self._get_test(testname)

Callers 1

_testMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected