1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-02-23 22:51:35 +00:00

skip converter tests if attic isn't installed

This commit is contained in:
Antoine Beaupré 2015-09-30 23:27:55 -04:00
parent c30df4e033
commit 77ed6dec2b

View file

@ -3,9 +3,14 @@
import shutil
import tempfile
import attic.repository
import attic.key
import attic.helpers
try:
import attic.repository
import attic.key
import attic.helpers
except ImportError:
attic = None
pytestmark = pytest.mark.skipif(attic is None,
reason = 'cannot find an attic install')
from ..converter import AtticRepositoryConverter, NotImplementedException
from ..helpers import get_keys_dir