Skip to content

Commit c28b703

Browse files
author
Tommaso Adani
committed
lint: update monkeypatch to correctly set _PROJECT_ROOT in re-export resolution tests
1 parent c2235f3 commit c28b703

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/detect_affected_models_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ def _write_pkg(tmp_path: Path, monkeypatch) -> Path:
399399
(src / "components" / "_mlp.py").write_text("class MLP: ...\n")
400400
# _module_name_from_path uses _PROJECT_ROOT to resolve dotted names;
401401
# point it at our synthetic tree for the duration of the test.
402-
monkeypatch.setattr(_dam, "_PROJECT_ROOT", tmp_path)
402+
monkeypatch.setattr("detect_affected_models._PROJECT_ROOT", tmp_path)
403403
return src
404404

405405
def test_resolves_symbol_to_source_module(self, tmp_path: Path, monkeypatch) -> None:

0 commit comments

Comments
 (0)