fix: dependency
This commit is contained in:
parent
1af2120452
commit
4e2caf15ab
2 changed files with 12 additions and 11 deletions
|
|
@ -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]
|
||||||
|
|
|
||||||
|
|
@ -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