aboutsummaryrefslogtreecommitdiffstats
path: root/ice_validator/tests/parametrizers.py
diff options
context:
space:
mode:
Diffstat (limited to 'ice_validator/tests/parametrizers.py')
-rw-r--r--ice_validator/tests/parametrizers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ice_validator/tests/parametrizers.py b/ice_validator/tests/parametrizers.py
index 35cf6e0..763296c 100644
--- a/ice_validator/tests/parametrizers.py
+++ b/ice_validator/tests/parametrizers.py
@@ -58,7 +58,7 @@ def get_template_dir(metafunc):
or, during --self-test, the directory whos name matches
the current tests module name
"""
- if metafunc.config.getoption("template_dir") is None:
+ if metafunc.config.getoption("template_dir", None) is None:
return path.join(
path.dirname(metafunc.module.__file__),
"fixtures",
@@ -155,7 +155,7 @@ def get_filenames_lists(
"""
extensions = [".yaml", ".yml", ".env"] if extensions is None else extensions
filenames_lists = []
- if metafunc.config.getoption("self_test"):
+ if metafunc.config.getoption("self_test", None):
filenames_lists.append(
list_template_dir(
metafunc, extensions, exclude_nested, template_type, ["pass"]