Compare commits
2 commits
1af2120452
...
d54db472e1
| Author | SHA1 | Date | |
|---|---|---|---|
| d54db472e1 | |||
| 4e2caf15ab |
4 changed files with 20 additions and 13 deletions
|
|
@ -1,3 +1,9 @@
|
||||||
|
## 0.2.0a12 (2025-09-22)
|
||||||
|
|
||||||
|
### Fix
|
||||||
|
|
||||||
|
- dependency
|
||||||
|
|
||||||
## 0.2.0a11 (2025-05-26)
|
## 0.2.0a11 (2025-05-26)
|
||||||
|
|
||||||
### Fix
|
### Fix
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "rougail.user_data_yaml"
|
name = "rougail.user_data_yaml"
|
||||||
version = "0.2.0a11"
|
version = "0.2.0a12"
|
||||||
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
|
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
description = "Rougail user_data yaml"
|
description = "Rougail user_data yaml"
|
||||||
|
|
@ -27,7 +27,8 @@ classifiers = [
|
||||||
|
|
||||||
]
|
]
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"rougail >= 1.1,<2",
|
"rougail-base >= 1.1,<2",
|
||||||
|
"ruamel.yaml ~= 0.18.6",
|
||||||
]
|
]
|
||||||
|
|
||||||
[project.urls]
|
[project.urls]
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
__version__ = "0.2.0a11"
|
__version__ = "0.2.0a12"
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ excludes = [
|
||||||
]
|
]
|
||||||
|
|
||||||
test_ok = get_structures_list(excludes)
|
test_ok = get_structures_list(excludes)
|
||||||
# test_ok = [Path('../rougail-tests/structures/60_5family_dynamic_calc_suffix_hidden')]
|
# test_ok = [Path('../rougail-tests/structures/20_9family_absolute')]
|
||||||
|
|
||||||
|
|
||||||
def idfn(fixture_value):
|
def idfn(fixture_value):
|
||||||
|
|
@ -32,7 +32,7 @@ def test_dir(request):
|
||||||
return request.param
|
return request.param
|
||||||
|
|
||||||
|
|
||||||
def _test_dictionaries(test_dir, namespace, ext, *, level, need_exclude=False):
|
def _test_structural_files(test_dir, namespace, ext, *, level, need_exclude=False):
|
||||||
rougailconfig = get_rougail_config(test_dir, namespace)
|
rougailconfig = get_rougail_config(test_dir, namespace)
|
||||||
if not rougailconfig:
|
if not rougailconfig:
|
||||||
return
|
return
|
||||||
|
|
@ -106,19 +106,19 @@ def populate(filename, makedict_file, rougailconfig, level, need_exclude):
|
||||||
fh.write('\n')
|
fh.write('\n')
|
||||||
|
|
||||||
|
|
||||||
def test_dictionaries_all(test_dir):
|
def test_structural_files_all(test_dir):
|
||||||
"tests the output"
|
"tests the output"
|
||||||
_test_dictionaries(test_dir, True, EXT, level='all')
|
_test_structural_files(test_dir, True, EXT, level='all')
|
||||||
|
|
||||||
|
|
||||||
def test_dictionaries_all_exclude(test_dir):
|
def test_structural_files_all_exclude(test_dir):
|
||||||
"tests the output"
|
"tests the output"
|
||||||
_test_dictionaries(test_dir, True, EXT, level='all', need_exclude=True)
|
_test_structural_files(test_dir, True, EXT, level='all', need_exclude=True)
|
||||||
|
|
||||||
|
|
||||||
def test_dictionaries_mandatories(test_dir):
|
def test_structural_files_mandatories(test_dir):
|
||||||
"tests the output"
|
"tests the output"
|
||||||
_test_dictionaries(test_dir, True, EXT, level='mandatories')
|
_test_structural_files(test_dir, True, EXT, level='mandatories')
|
||||||
|
|
||||||
|
|
||||||
def test_errors():
|
def test_errors():
|
||||||
|
|
@ -172,7 +172,7 @@ def test_file_error(request):
|
||||||
return request.param
|
return request.param
|
||||||
|
|
||||||
|
|
||||||
def test_dictionaries_error(test_file_error):
|
def test_structural_files_error(test_file_error):
|
||||||
rougailconfig = get_rougail_config(test_file_error.parent.parent / 'structure')
|
rougailconfig = get_rougail_config(test_file_error.parent.parent / 'structure')
|
||||||
##################################
|
##################################
|
||||||
rougailconfig['step.user_data'] = ['yaml']
|
rougailconfig['step.user_data'] = ['yaml']
|
||||||
|
|
@ -193,7 +193,7 @@ def test_dictionaries_error(test_file_error):
|
||||||
assert expected_errors == errors, errors_file
|
assert expected_errors == errors, errors_file
|
||||||
|
|
||||||
|
|
||||||
def test_dictionaries_directory():
|
def test_structural_files_directory():
|
||||||
test_dir = Path(__file__).parent / 'directory'
|
test_dir = Path(__file__).parent / 'directory'
|
||||||
rougailconfig = get_rougail_config(test_dir / 'structure')
|
rougailconfig = get_rougail_config(test_dir / 'structure')
|
||||||
##################################
|
##################################
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue