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

Method test_ensure_filepath_withoutdir

testing/_py/test_local.py:791–795  ·  testing/_py/test_local.py::TestLocalPath.test_ensure_filepath_withoutdir
(self, tmpdir)

Source from the content-addressed store, hash-verified

789 assert s == class="st">"42"
790
791 def test_ensure_filepath_withoutdir(self, tmpdir):
792 newfile = tmpdir.join(class="st">"test1file")
793 t = newfile.ensure()
794 assert t == newfile
795 assert newfile.check(file=1)
796
797 def test_ensure_dirpath(self, tmpdir):
798 newfile = tmpdir.join(class="st">"test1", class="st">"testfile")

Callers

nothing calls this directly

Calls 3

joinMethod · 0.80
ensureMethod · 0.80
checkMethod · 0.45

Tested by

no test coverage detected