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

Method test_pyimport_b

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

Source from the content-addressed store, hash-verified

1053 assert mod.__name__ == "otherdir.a"
1054
1055 def test_pyimport_b(self, path1):
1056 otherdir = path1.join("otherdir")
1057 mod = otherdir.join("b.py").pyimport()
1058 assert mod.stuff == "got it"
1059 assert mod.__name__ == "otherdir.b"
1060
1061 def test_pyimport_c(self, path1):
1062 otherdir = path1.join("otherdir")

Callers

nothing calls this directly

Calls 2

joinMethod · 0.80
pyimportMethod · 0.80

Tested by

no test coverage detected