Compare commits
2 commits
2bc6664c83
...
25b7d09f82
| Author | SHA256 | Date | |
|---|---|---|---|
| 25b7d09f82 | |||
| 23336b708c |
5 changed files with 12 additions and 12 deletions
10
CHANGELOG.md
10
CHANGELOG.md
|
|
@ -1,3 +1,13 @@
|
|||
## 0.1.0a1 (2025-10-10)
|
||||
|
||||
### Feat
|
||||
|
||||
- add tests
|
||||
|
||||
### Fix
|
||||
|
||||
- remove print
|
||||
|
||||
## 0.1.0a0 (2025-10-06)
|
||||
|
||||
### Feat
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
|
|||
|
||||
[project]
|
||||
name = "rougail.user_data_commandline"
|
||||
version = "0.1.0a0"
|
||||
version = "0.1.0a1"
|
||||
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
|
||||
readme = "README.md"
|
||||
description = "Rougail user_data Bitwarden"
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
__version__ = "0.1.0a0"
|
||||
__version__ = "0.1.0a1"
|
||||
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -58,11 +58,9 @@ def _test_structural_files(test_dir, namespace, ext, *, level, need_exclude=Fals
|
|||
return
|
||||
with filename.open() as file_content:
|
||||
arguments = load(file_content)
|
||||
print('arguments', arguments, type(arguments))
|
||||
##################################
|
||||
# loads variables in the tiramisu config
|
||||
generated_user_data = RougailUserData(config, rougailconfig=rougailconfig, arguments=arguments, prog="test_load").run()
|
||||
print(generated_user_data)
|
||||
errors = rougail.user_datas(generated_user_data)
|
||||
#expected output
|
||||
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
|
||||
config = Rougail(rougailconfig).run()
|
||||
values = get_values_for_config(config, not need_exclude, level, follower_with_index=True)
|
||||
print(filename)
|
||||
if not filename.is_file():
|
||||
filename.parent.mkdir(parents=True, exist_ok=True)
|
||||
##############################################
|
||||
v = values_to_commandline(values)
|
||||
print('========================')
|
||||
print('========================')
|
||||
print('========================')
|
||||
print(v)
|
||||
print('========================')
|
||||
##############################################
|
||||
with filename.open('w') as fh:
|
||||
##############################################
|
||||
|
|
@ -124,7 +116,6 @@ class SubMulti(Exception):
|
|||
|
||||
##############################################
|
||||
def values_to_commandline(values):
|
||||
print(values)
|
||||
def parse(root_path, values_, level=-1):
|
||||
level += 1
|
||||
for key, value in values_.items():
|
||||
|
|
@ -135,7 +126,6 @@ def values_to_commandline(values):
|
|||
if isinstance(value, dict):
|
||||
yield from parse(sub_root_path, value, level)
|
||||
elif isinstance(value, list):
|
||||
print("+++++++++++++++++++++", sub_root_path, value)
|
||||
if value and isinstance(value[0], dict):
|
||||
keys = []
|
||||
for ls in value:
|
||||
|
|
|
|||
Loading…
Reference in a new issue