mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
test: format with latest black
Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
@@ -284,8 +284,8 @@ class TestCheckoutMissingMd5InStageFile(TestRepro):
|
||||
with open(self.file1_stage, "r") as fd:
|
||||
d = yaml.load(fd)
|
||||
|
||||
del (d[Stage.PARAM_OUTS][0][RemoteLOCAL.PARAM_CHECKSUM])
|
||||
del (d[Stage.PARAM_DEPS][0][RemoteLOCAL.PARAM_CHECKSUM])
|
||||
del d[Stage.PARAM_OUTS][0][RemoteLOCAL.PARAM_CHECKSUM]
|
||||
del d[Stage.PARAM_DEPS][0][RemoteLOCAL.PARAM_CHECKSUM]
|
||||
|
||||
with open(self.file1_stage, "w") as fd:
|
||||
yaml.dump(d, fd)
|
||||
|
||||
@@ -634,7 +634,7 @@ class TestWarnOnOutdatedStage(TestDvc):
|
||||
|
||||
stage_file_path = stage.relpath
|
||||
content = load_stage_file(stage_file_path)
|
||||
del (content["outs"][0]["md5"])
|
||||
del content["outs"][0]["md5"]
|
||||
with open(stage_file_path, "w") as stage_file:
|
||||
yaml.dump(content, stage_file)
|
||||
|
||||
|
||||
+2
-2
@@ -709,8 +709,8 @@ class TestReproMissingMd5InStageFile(TestRepro):
|
||||
with open(self.file1_stage, "r") as fd:
|
||||
d = yaml.load(fd)
|
||||
|
||||
del (d[Stage.PARAM_OUTS][0][RemoteLOCAL.PARAM_CHECKSUM])
|
||||
del (d[Stage.PARAM_DEPS][0][RemoteLOCAL.PARAM_CHECKSUM])
|
||||
del d[Stage.PARAM_OUTS][0][RemoteLOCAL.PARAM_CHECKSUM]
|
||||
del d[Stage.PARAM_DEPS][0][RemoteLOCAL.PARAM_CHECKSUM]
|
||||
|
||||
with open(self.file1_stage, "w") as fd:
|
||||
yaml.dump(d, fd)
|
||||
|
||||
Reference in New Issue
Block a user