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

Method test_relto

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

Source from the content-addressed store, hash-verified

144 # assert sfile.check(fnmatch=pattern)
145
146 def test_relto(self, path1):
147 p = path1.join("sampledir", "otherfile")
148 assert p.relto(path1) == p.sep.join(["sampledir", "otherfile"])
149 assert p.check(relto=path1)
150 assert path1.check(notrelto=p)
151 assert not path1.check(relto=p)
152
153 def test_bestrelpath(self, path1):
154 curdir = path1

Callers

nothing calls this directly

Calls 3

joinMethod · 0.80
reltoMethod · 0.45
checkMethod · 0.45

Tested by

no test coverage detected