Skip to content

Commit d4c2470

Browse files
committed
test for backup copy save
1 parent c54c4cf commit d4c2470

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/pyff/test/test_md_api.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
from pyff.test.test_pipeline import PipeLineTest
1414
from pyff.constants import config
1515

16+
from urllib.parse import quote as urlescape
17+
1618

1719
class PyFFAPITest(PipeLineTest):
1820
"""
@@ -208,3 +210,5 @@ def test_api_resources(self):
208210

209211
last_seen = datetime.fromisoformat(data[0]['Last Seen'])
210212
assert (last_seen - now).total_seconds() < 60
213+
214+
assert os.path.exists(os.path.join(config.local_copy_dir, urlescape(f'file://{self.test01}')))

0 commit comments

Comments
 (0)