move show_files

This commit is contained in:
Daniel 2023-11-21 21:35:01 +01:00
parent 2d9ca21fec
commit bee347f13f

View file

@ -26,7 +26,6 @@ class Runner:
def __init__(self, dotenv_path: Path):
self.dotenv_path = dotenv_path
self.root_dir = self.dotenv_path.parent
self.show_files()
self.load_dotenv()
def _run_main_test(self):
@ -42,6 +41,9 @@ class Runner:
]
)
def show_files(self):
ic(list(self.root_dir.glob("*")))
def run_tests(self):
self._run_main_test()
for c in self.sub_tests:
@ -57,9 +59,6 @@ class RunnerWordpress(Runner):
SubTest(condition=condition_always_true, test_file="test_wordpress_feature1.py")
]
def show_files(self):
ic(list(self.root_dir.glob("*")))
def load_dotenv(self):
assert self.dotenv_path.is_file()
config = dotenv_values(self.dotenv_path)