Check that the execution rejects if external API changed paths
(monkeypatch)
| 88 | |
| 89 | @dec.skip_without("pandas") |
| 90 | def test_external_changed_api(monkeypatch): |
| 91 | """Check that the execution rejects if external API changed paths""" |
| 92 | import pandas as pd |
| 93 | |
| 94 | series = pd.Series([1], index=["a"]) |
| 95 | |
| 96 | with monkeypatch.context() as m: |
| 97 | m.delattr(pd, "Series") |
| 98 | context = limited(data=series) |
| 99 | with pytest.raises(GuardRejection): |
| 100 | guarded_eval("data.iloc[0]", context) |
| 101 | |
| 102 | |
| 103 | @dec.skip_without("pandas") |
nothing calls this directly
no test coverage detected
searching dependent graphs…