diff --git a/pyproject.toml b/pyproject.toml index 60fd5a3..11c92c3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,7 +27,8 @@ classifiers = [ ] dependencies = [ - "rougail >= 1.1,<2", + "rougail-base >= 1.1,<2", + "ruamel.yaml ~= 0.18.6", ] [project.urls] diff --git a/tests/test_load.py b/tests/test_load.py index f2d6389..9ebf895 100644 --- a/tests/test_load.py +++ b/tests/test_load.py @@ -20,7 +20,7 @@ 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): @@ -32,7 +32,7 @@ def test_dir(request): 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) if not rougailconfig: return @@ -106,19 +106,19 @@ def populate(filename, makedict_file, rougailconfig, level, need_exclude): fh.write('\n') -def test_dictionaries_all(test_dir): +def test_structural_files_all(test_dir): "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" - _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" - _test_dictionaries(test_dir, True, EXT, level='mandatories') + _test_structural_files(test_dir, True, EXT, level='mandatories') def test_errors(): @@ -172,7 +172,7 @@ def test_file_error(request): 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['step.user_data'] = ['yaml'] @@ -193,7 +193,7 @@ def test_dictionaries_error(test_file_error): assert expected_errors == errors, errors_file -def test_dictionaries_directory(): +def test_structural_files_directory(): test_dir = Path(__file__).parent / 'directory' rougailconfig = get_rougail_config(test_dir / 'structure') ##################################