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

Method test_newext

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

Source from the content-addressed store, hash-verified

269 assert newpath.ext == ".c"
270
271 def test_newext(self, path1):
272 newpath = path1.join("samplefile.py")
273 newext = newpath.new(ext=".txt")
274 assert newext.basename == "samplefile.txt"
275 assert newext.purebasename == "samplefile"
276
277 def test_readlines(self, path1):
278 fn = path1.join("samplefile")

Callers

nothing calls this directly

Calls 2

joinMethod · 0.80
newMethod · 0.80

Tested by

no test coverage detected