disable main test, improve defualt conditions
This commit is contained in:
parent
d5b9eda7b1
commit
4b6da547b8
1 changed files with 7 additions and 6 deletions
|
|
@ -3,17 +3,18 @@ from pathlib import Path
|
||||||
from runner import Runner, SubTest
|
from runner import Runner, SubTest
|
||||||
|
|
||||||
|
|
||||||
def condition_feature1(dotenv_path: Path) -> bool:
|
|
||||||
"""returns true if feature 1 should be executed based on the dotenv file given as a Path"""
|
|
||||||
|
|
||||||
|
|
||||||
def condition_always_true(dotenv_path: Path) -> bool:
|
def condition_always_true(dotenv_path: Path) -> bool:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
def condition_always_false(dotenv_path: Path) -> bool:
|
||||||
|
return False
|
||||||
|
|
||||||
|
|
||||||
class RunnerWordpress(Runner):
|
class RunnerWordpress(Runner):
|
||||||
test_dir_name = "tests_wordpress"
|
test_dir_name = "tests_wordpress"
|
||||||
main_test_name = "test_wordpress.py"
|
# main_test_name = "test_wordpress.py"
|
||||||
sub_tests = [
|
sub_tests = [
|
||||||
SubTest(condition=condition_always_true, test_file="test_wordpress_feature1.py")
|
SubTest(condition=condition_always_false, test_file="test_wordpress_feature1.py"),
|
||||||
|
SubTest(condition=condition_always_true, test_file="conftest.py"),
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue