update test

This commit is contained in:
Fábio Santos
2020-01-14 19:49:21 +00:00
parent 8f464c2a07
commit cfbdccdbed
+6 -1
View File
@@ -19,8 +19,13 @@ def test_update_import(tmp_dir, dvc, erepo_dir):
# cli call, so we need to clean the caches to see the changes.
clean_repos()
assert dvc.status([stage.path]) == {}
status, = dvc.status([stage.path])["version.dvc"]
changed_dep, = list(status["changed deps"].items())
assert changed_dep[0].startswith("version ")
assert changed_dep[1] == "update available"
dvc.update(stage.path)
assert dvc.status([stage.path]) == {}
assert imported.is_file()