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

Method test_remove_routes_ignore_errors

testing/_py/test_local.py:605–613  ·  view source on GitHub ↗
(self, tmpdir, monkeypatch)

Source from the content-addressed store, hash-verified

603 assert not readonly_dir.check(exists=1)
604
605 def test_remove_routes_ignore_errors(self, tmpdir, monkeypatch):
606 lst = []
607 monkeypatch.setattr("shutil.rmtree", lambda *args, **kwargs: lst.append(kwargs))
608 tmpdir.remove()
609 assert not lst[0]["ignore_errors"]
610 for val in (True, False):
611 lst[:] = []
612 tmpdir.remove(ignore_errors=val)
613 assert lst[0]["ignore_errors"] == val
614
615 def test_initialize_curdir(self):
616 assert str(local()) == os.getcwd()

Callers

nothing calls this directly

Calls 3

setattrMethod · 0.80
appendMethod · 0.80
removeMethod · 0.80

Tested by

no test coverage detected