|
|
|
@ -1,9 +1,17 @@ |
|
|
|
import pytest |
|
|
|
from pathlib import Path |
|
|
|
|
|
|
|
from tibi_hardlinks.cache import Cache |
|
|
|
from tibi_hardlinks.backup_parser import read_backup_properties |
|
|
|
import tibi_hardlinks.backup_parser |
|
|
|
from tibi_hardlinks.backups import find_backup_data, Backup |
|
|
|
|
|
|
|
|
|
|
|
def test_find_backup_data_on_files(property_filepath): |
|
|
|
def test_find_backup_data_on_files(property_filepath, monkeypatch, tmp_path): |
|
|
|
monkeypatch.setattr(tibi_hardlinks.backup_parser, "tibi_cache", Cache(tmp_path)) |
|
|
|
assert len(tibi_hardlinks.backup_parser.tibi_cache._store) == 0 |
|
|
|
find_backup_data(property_filepath, read_backup_properties(property_filepath)) |
|
|
|
|
|
|
|
|
|
|
|
def test_backup_class_init(property_filepath): |
|
|
|
Backup(property_filepath) |