mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-19 15:28:28 +01:00
* Work in progress * added file parsing and name validation + adjust schema * Exceptions on bad input * Support multiple parameters * Support multi 's in Having any troubles? Hit us up at https://dvc.org/support, we are always happy to help! * Restyled by black Co-authored-by: elgehelge <[email protected]> Co-authored-by: Restyled.io <[email protected]>
This commit is contained in:
co-authored by
elgehelge
Restyled.io
parent
caf5b931b9
commit
65d22c7dbd
@@ -38,6 +38,10 @@ class TestDirFixture(object):
|
||||
# in tests, we replace foo with bar, so we need to make sure that when we
|
||||
# modify a file in our tests, its content length changes.
|
||||
BAR_CONTENTS = BAR + "r"
|
||||
PARAMSDEFAULT = "params.json"
|
||||
PARAMSDEFAULT_CONTENTS = '{"p_one": "1", "p_two": "1"}'
|
||||
PARAMS = "par.json"
|
||||
PARAMS_CONTENTS = '{"p_three": "3"}'
|
||||
CODE = "code.py"
|
||||
CODE_CONTENTS = (
|
||||
"import sys\nimport shutil\n"
|
||||
@@ -87,6 +91,8 @@ class TestDirFixture(object):
|
||||
self._pushd(self._root_dir)
|
||||
self.create(self.FOO, self.FOO_CONTENTS)
|
||||
self.create(self.BAR, self.BAR_CONTENTS)
|
||||
self.create(self.PARAMSDEFAULT, self.PARAMSDEFAULT_CONTENTS)
|
||||
self.create(self.PARAMS, self.PARAMS_CONTENTS)
|
||||
self.create(self.CODE, self.CODE_CONTENTS)
|
||||
os.mkdir(self.DATA_DIR)
|
||||
os.mkdir(self.DATA_SUB_DIR)
|
||||
|
||||
Reference in New Issue
Block a user