MCPcopy Create free account
hub / github.com/conda/constructor / test_payload_remove

Function test_payload_remove

tests/test_briefcase.py:248–257  ·  view source on GitHub ↗

Test removing the payload.

()

Source from the content-addressed store, hash-verified

246
247@pytest.mark.skipif(sys.platform != "win32", reason="Windows only")
248def test_payload_remove():
249 """Test removing the payload."""
250 info = mock_info.copy()
251 payload = Payload(info)
252 payload.prepare()
253 root = payload.root
254
255 assert root.is_dir()
256 payload.remove()
257 assert not root.is_dir()
258
259
260@pytest.mark.skipif(sys.platform != "win32", reason="Windows only")

Callers

nothing calls this directly

Calls 3

prepareMethod · 0.95
removeMethod · 0.95
PayloadClass · 0.90

Tested by

no test coverage detected