(self, stmt, mod_name)
| 116 | ] |
| 117 | ) |
| 118 | def test_import_from(self, stmt, mod_name): |
| 119 | test_globals = {} |
| 120 | ConfigExpression(id="", config=stmt, globals=test_globals).evaluate() |
| 121 | self.assertTrue(callable(test_globals[mod_name])) |
| 122 | self.assertTrue(ConfigExpression.is_import_statement(ConfigExpression(id="", config=stmt).config)) |
| 123 | |
| 124 | @parameterized.expand( |
| 125 | [("$from json import dump", True), ("$print()", False), ("$import json", True), ("import json", False)] |
nothing calls this directly
no test coverage detected