MCPcopy
hub / github.com/pytest-dev/pytest / test_smoke_test

Method test_smoke_test

testing/test_pathlib.py:193–198  ·  testing/test_pathlib.py::TestImportPath.test_smoke_test
(self, path1: Path, ns_param: bool)

Source from the content-addressed store, hash-verified

191 )
192
193 def test_smoke_test(self, path1: Path, ns_param: bool) -> None:
194 obj = import_path(
195 path1 / class="st">"execfile.py", root=path1, consider_namespace_packages=ns_param
196 )
197 assert obj.x == 42
198 assert obj.__name__ == class="st">"execfile"
199
200 def test_import_path_missing_file(self, path1: Path, ns_param: bool) -> None:
201 with pytest.raises(ImportPathMismatchError):

Callers

nothing calls this directly

Calls 1

import_pathFunction · 0.90

Tested by

no test coverage detected