dvc: Use "DVC-file" term as much as possible

Keep "stage file" in the context of pipelines

No issue
This commit is contained in:
Jorge Orpinel
2019-06-26 14:05:18 -05:00
parent aa5e8c7f26
commit fba7d85cbd
9 changed files with 195 additions and 22 deletions
+4 -4
View File
@@ -96,7 +96,7 @@ class TestAddCmdDirectoryRecursive(TestDvc):
warning = (
"You are adding a large directory 'large-dir' recursively,"
" consider tracking it as a whole instead.\n"
"{purple}HINT:{nc} Remove the generated stage files and then"
"{purple}HINT:{nc} Remove the generated DVC-files and then"
" run {cyan}dvc add large-dir{nc}".format(
purple=colorama.Fore.MAGENTA,
cyan=colorama.Fore.CYAN,
@@ -424,7 +424,7 @@ class TestShouldThrowProperExceptionOnCorruptedStageFile(TestDvc):
foo_stage = relpath(self.FOO + Stage.STAGE_FILE_SUFFIX)
# corrupt stage file
# corrupt DVC-file
with open(foo_stage, "a+") as file:
file.write("this will break yaml file structure")
@@ -434,7 +434,7 @@ class TestShouldThrowProperExceptionOnCorruptedStageFile(TestDvc):
assert 1 == ret
expected_error = (
"unable to read stage file: {} "
"unable to read DVC-file: {} "
"YAML file structure is corrupted".format(foo_stage)
)
@@ -475,7 +475,7 @@ class TestShouldCleanUpAfterFailedAdd(TestDvcGit):
self.assertEqual(0, ret)
foo_stage_file = self.FOO + Stage.STAGE_FILE_SUFFIX
# corrupt stage file
# corrupt DVC-file
with open(foo_stage_file, "a+") as file:
file.write("this will break yaml file structure")
+1 -1
View File
@@ -1558,7 +1558,7 @@ def test_dvc_formatting_retained(dvc_repo, foo_copy):
root = pathlib.Path(dvc_repo.root_dir)
stage_file = root / foo_copy["stage_fname"]
# Add comments and custom formatting to stage file
# Add comments and custom formatting to DVC-file
lines = list(map(_format_dvc_line, stage_file.read_text().splitlines()))
lines.insert(0, "# Starting comment")
stage_text = "".join(l + "\n" for l in lines)
+1 -1
View File
@@ -172,7 +172,7 @@ def test_md5_ignores_comments(repo_dir, dvc_repo):
def test_meta_is_preserved(dvc_repo):
stage, = dvc_repo.add("foo")
# Add meta to stage file
# Add meta to DVC-file
data = load_stage_file(stage.path)
data["meta"] = {"custom_key": 42}
dump_stage_file(stage.path, data)