move show_files
This commit is contained in:
parent
2d9ca21fec
commit
bee347f13f
1 changed files with 3 additions and 4 deletions
|
|
@ -26,7 +26,6 @@ class Runner:
|
||||||
def __init__(self, dotenv_path: Path):
|
def __init__(self, dotenv_path: Path):
|
||||||
self.dotenv_path = dotenv_path
|
self.dotenv_path = dotenv_path
|
||||||
self.root_dir = self.dotenv_path.parent
|
self.root_dir = self.dotenv_path.parent
|
||||||
self.show_files()
|
|
||||||
self.load_dotenv()
|
self.load_dotenv()
|
||||||
|
|
||||||
def _run_main_test(self):
|
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):
|
def run_tests(self):
|
||||||
self._run_main_test()
|
self._run_main_test()
|
||||||
for c in self.sub_tests:
|
for c in self.sub_tests:
|
||||||
|
|
@ -57,9 +59,6 @@ class RunnerWordpress(Runner):
|
||||||
SubTest(condition=condition_always_true, test_file="test_wordpress_feature1.py")
|
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):
|
def load_dotenv(self):
|
||||||
assert self.dotenv_path.is_file()
|
assert self.dotenv_path.is_file()
|
||||||
config = dotenv_values(self.dotenv_path)
|
config = dotenv_values(self.dotenv_path)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue