MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / test_import

Method test_import

tests/bundle/test_config_item.py:105–108  ·  view source on GitHub ↗
(self, stmt, mod_name)

Source from the content-addressed store, hash-verified

103
104 @parameterized.expand([("$import json", "json"), ("$import json as j", "j")])
105 def test_import(self, stmt, mod_name):
106 test_globals = {}
107 ConfigExpression(id="", config=stmt, globals=test_globals).evaluate()
108 self.assertTrue(callable(test_globals[mod_name].dump))
109
110 @parameterized.expand(
111 [

Callers

nothing calls this directly

Calls 2

ConfigExpressionClass · 0.90
evaluateMethod · 0.45

Tested by

no test coverage detected