(tmpdir, config)
| 89 | |
| 90 | |
| 91 | def 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 | |
| 101 | def test_backup_push_fetch(tmpdir, small_push_dir, monkeypatch, config, |