demo working

This commit is contained in:
Daniel 2023-12-03 20:00:28 +01:00
parent 83d082f9cb
commit 92160e0021

View file

@ -1,6 +1,8 @@
import sys import sys
from pathlib import Path from pathlib import Path
from icecream import ic
sys.path.append(Path(__file__).parent.parent.resolve().__str__()) sys.path.append(Path(__file__).parent.parent.resolve().__str__())
# import pytest # import pytest
@ -43,13 +45,15 @@ from src.env_file_helper import DependencyRule, EnvFile, sort_env_files_by_rule
ENV_FILES = [ ENV_FILES = [
Path("envfiles/login.test.dev.local-it.cloud.env"), # authentik
Path("envfiles/blog.test.dev.local-it.cloud.env"), # wordpress Path("envfiles/blog.test.dev.local-it.cloud.env"), # wordpress
Path("envfiles/login.test.dev.local-it.cloud.env"), # authentik
] ]
env_files: list[EnvFile] = Coordinator._getn_env_files_list(ENV_FILES) env_files: list[EnvFile] = Coordinator._getn_env_files_list(ENV_FILES)
dependency_rules: list[DependencyRule] = Coordinator._get_dependency_rules(env_files) dependency_rules: list[DependencyRule] = Coordinator._get_dependency_rules(env_files)
ic(env_files)
print(dependency_rules) sorted_env_files = sort_env_files_by_rule(env_files, dependency_rules)
ic(env_files)
ic(sorted_env_files)