summaryrefslogtreecommitdiffstats
path: root/conftest.py
diff options
context:
space:
mode:
Diffstat (limited to 'conftest.py')
-rw-r--r--conftest.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/conftest.py b/conftest.py
index 1704e46..e7eee8f 100644
--- a/conftest.py
+++ b/conftest.py
@@ -1,4 +1,5 @@
"""PyTest Fixtures."""
+
import importlib
import os
import platform
@@ -14,10 +15,11 @@ if Path.cwd() != Path(__file__).parent:
os.chdir(Path(__file__).parent)
# checking if user is running pytest without installing test dependencies:
-missing = []
-for module in ["ansible", "black", "mypy", "pylint"]:
- if not importlib.util.find_spec(module):
- missing.append(module)
+missing = [
+ module
+ for module in ["ansible", "black", "mypy", "pylint"]
+ if not importlib.util.find_spec(module)
+]
if missing:
pytest.exit(
reason=f"FATAL: Missing modules: {', '.join(missing)} -- probably you missed installing test requirements with: pip install -e '.[test]'",