From 62a332cc33a70afeea7d379c4fb4a68a0dead201 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A9ri=20Le=20Bouder?= Date: Wed, 21 Dec 2022 09:46:16 -0500 Subject: [PATCH] utils.get_module_from_config(): store the config in gouttelette directory Store the `modules.yaml` in a dedicated `gouttelette` directory from the collection directory. --- gouttelette/utils.py | 2 +- tests/unit/cmd/fixtures/{ => gouttelette}/modules.yaml | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename tests/unit/cmd/fixtures/{ => gouttelette}/modules.yaml (100%) diff --git a/gouttelette/utils.py b/gouttelette/utils.py index 2ffb87f..993f4d0 100644 --- a/gouttelette/utils.py +++ b/gouttelette/utils.py @@ -90,7 +90,7 @@ def indent(text_block: str, indent: int = 0) -> str: def get_module_from_config(module: str, target_dir: Path) -> dict[str, Any]: - module_file = target_dir / "modules.yaml" + module_file = target_dir / "gouttelette" / "modules.yaml" raw_content = module_file.read_text() for i in yaml.safe_load(raw_content): diff --git a/tests/unit/cmd/fixtures/modules.yaml b/tests/unit/cmd/fixtures/gouttelette/modules.yaml similarity index 100% rename from tests/unit/cmd/fixtures/modules.yaml rename to tests/unit/cmd/fixtures/gouttelette/modules.yaml