[WIP] Add new automated test framework (#1)

Co-authored-by: Daniel <d.brummerloh@gmail.com>
Co-committed-by: Daniel <d.brummerloh@gmail.com>
This commit is contained in:
Daniel 2023-11-22 21:40:13 +01:00 committed by dan
parent 859bd57006
commit 97ed87c79f
31 changed files with 769 additions and 6 deletions

View file

@ -0,0 +1,20 @@
from pathlib import Path
from runner import Runner, SubTest
def condition_always_true(dotenv_path: Path) -> bool:
return True
def condition_always_false(dotenv_path: Path) -> bool:
return False
class RunnerWordpress(Runner):
test_dir_name = "tests_wordpress"
# main_test_name = "test_wordpress.py"
sub_tests = [
SubTest(condition=condition_always_false, test_file="test_wordpress_feature1.py"),
SubTest(condition=condition_always_true, test_file="conftest.py"),
]