MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_smoke_test

Method test_smoke_test

testing/test_pathlib.py:141–144  ·  view source on GitHub ↗
(self, path1: Path)

Source from the content-addressed store, hash-verified

139 )
140
141 def test_smoke_test(self, path1: Path) -> None:
142 obj = import_path(path1 / "execfile.py", root=path1)
143 assert obj.x == 42 # type: ignore[attr-defined]
144 assert obj.__name__ == "execfile"
145
146 def test_renamed_dir_creates_mismatch(
147 self, tmp_path: Path, monkeypatch: MonkeyPatch

Callers

nothing calls this directly

Calls 1

import_pathFunction · 0.90

Tested by

no test coverage detected