fix: remove print
This commit is contained in:
parent
2bc6664c83
commit
23336b708c
2 changed files with 0 additions and 10 deletions
Binary file not shown.
|
|
@ -58,11 +58,9 @@ def _test_structural_files(test_dir, namespace, ext, *, level, need_exclude=Fals
|
||||||
return
|
return
|
||||||
with filename.open() as file_content:
|
with filename.open() as file_content:
|
||||||
arguments = load(file_content)
|
arguments = load(file_content)
|
||||||
print('arguments', arguments, type(arguments))
|
|
||||||
##################################
|
##################################
|
||||||
# loads variables in the tiramisu config
|
# loads variables in the tiramisu config
|
||||||
generated_user_data = RougailUserData(config, rougailconfig=rougailconfig, arguments=arguments, prog="test_load").run()
|
generated_user_data = RougailUserData(config, rougailconfig=rougailconfig, arguments=arguments, prog="test_load").run()
|
||||||
print(generated_user_data)
|
|
||||||
errors = rougail.user_datas(generated_user_data)
|
errors = rougail.user_datas(generated_user_data)
|
||||||
#expected output
|
#expected output
|
||||||
expected_filename = Path('tests') / 'results' / dir_name / test_dir.name / 'makedict' / f'{level}.json'
|
expected_filename = Path('tests') / 'results' / dir_name / test_dir.name / 'makedict' / f'{level}.json'
|
||||||
|
|
@ -94,16 +92,10 @@ def populate(filename, makedict_file, rougailconfig, level, need_exclude, namesp
|
||||||
return
|
return
|
||||||
config = Rougail(rougailconfig).run()
|
config = Rougail(rougailconfig).run()
|
||||||
values = get_values_for_config(config, not need_exclude, level, follower_with_index=True)
|
values = get_values_for_config(config, not need_exclude, level, follower_with_index=True)
|
||||||
print(filename)
|
|
||||||
if not filename.is_file():
|
if not filename.is_file():
|
||||||
filename.parent.mkdir(parents=True, exist_ok=True)
|
filename.parent.mkdir(parents=True, exist_ok=True)
|
||||||
##############################################
|
##############################################
|
||||||
v = values_to_commandline(values)
|
v = values_to_commandline(values)
|
||||||
print('========================')
|
|
||||||
print('========================')
|
|
||||||
print('========================')
|
|
||||||
print(v)
|
|
||||||
print('========================')
|
|
||||||
##############################################
|
##############################################
|
||||||
with filename.open('w') as fh:
|
with filename.open('w') as fh:
|
||||||
##############################################
|
##############################################
|
||||||
|
|
@ -124,7 +116,6 @@ class SubMulti(Exception):
|
||||||
|
|
||||||
##############################################
|
##############################################
|
||||||
def values_to_commandline(values):
|
def values_to_commandline(values):
|
||||||
print(values)
|
|
||||||
def parse(root_path, values_, level=-1):
|
def parse(root_path, values_, level=-1):
|
||||||
level += 1
|
level += 1
|
||||||
for key, value in values_.items():
|
for key, value in values_.items():
|
||||||
|
|
@ -135,7 +126,6 @@ def values_to_commandline(values):
|
||||||
if isinstance(value, dict):
|
if isinstance(value, dict):
|
||||||
yield from parse(sub_root_path, value, level)
|
yield from parse(sub_root_path, value, level)
|
||||||
elif isinstance(value, list):
|
elif isinstance(value, list):
|
||||||
print("+++++++++++++++++++++", sub_root_path, value)
|
|
||||||
if value and isinstance(value[0], dict):
|
if value and isinstance(value[0], dict):
|
||||||
keys = []
|
keys = []
|
||||||
for ls in value:
|
for ls in value:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue