blob: 304cb6c5ec665b41a0cad6a9d5fef3c5183aa1ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
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
|