()
| 1008 | |
| 1009 | |
| 1010 | def test_autoimport_module(): |
| 1011 | context = EvaluationContext( |
| 1012 | locals={}, |
| 1013 | globals={}, |
| 1014 | evaluation="limited", |
| 1015 | auto_import=import_module, |
| 1016 | policy_overrides={"allow_auto_import": True}, |
| 1017 | ) |
| 1018 | pi = guarded_eval("math.pi", context) |
| 1019 | assert round(pi, 2) == 3.14 |
| 1020 | |
| 1021 | |
| 1022 | def test_autoimport_deep_module(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…