summaryrefslogtreecommitdiffstats
path: root/test/test_mockings.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_mockings.py')
-rw-r--r--test/test_mockings.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/test_mockings.py b/test/test_mockings.py
new file mode 100644
index 0000000..304cb6c
--- /dev/null
+++ b/test/test_mockings.py
@@ -0,0 +1,13 @@
+"""Test mockings module."""
+import pytest
+
+from ansiblelint._mockings import _make_module_stub
+from ansiblelint.constants import INVALID_CONFIG_RC
+
+
+def test_make_module_stub() -> None:
+ """Test make module stub."""
+ with pytest.raises(SystemExit) as exc:
+ _make_module_stub("")
+ assert exc.type == SystemExit
+ assert exc.value.code == INVALID_CONFIG_RC