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

Method test_pyimport_a

testing/_py/test_local.py:1049–1053  ·  view source on GitHub ↗
(self, path1)

Source from the content-addressed store, hash-verified

1047 assert obj.__name__ == "0x.y.z"
1048
1049 def test_pyimport_a(self, path1):
1050 otherdir = path1.join("otherdir")
1051 mod = otherdir.join("a.py").pyimport()
1052 assert mod.result == "got it"
1053 assert mod.__name__ == "otherdir.a"
1054
1055 def test_pyimport_b(self, path1):
1056 otherdir = path1.join("otherdir")

Callers

nothing calls this directly

Calls 2

joinMethod · 0.80
pyimportMethod · 0.80

Tested by

no test coverage detected