MCPcopy Create free account
hub / github.com/wal-e/wal-e / test_wal_fetch_non_existent

Function test_wal_fetch_non_existent

tests/test_blackbox.py:91–98  ·  view source on GitHub ↗
(tmpdir, config)

Source from the content-addressed store, hash-verified

89
90
91def test_wal_fetch_non_existent(tmpdir, config):
92 # Recall file and check for equality.
93 download_file = tmpdir.join('TEST-DOWNLOADED')
94
95 with pytest.raises(SystemExit) as e:
96 config.main('wal-fetch', '-p0', 'irrelevant', str(download_file))
97
98 assert e.value.code == 1
99
100
101def test_backup_push_fetch(tmpdir, small_push_dir, monkeypatch, config,

Callers

nothing calls this directly

Calls 2

joinMethod · 0.45
mainMethod · 0.45

Tested by

no test coverage detected