コード例 #1
0
ファイル: test_check_plugins.py プロジェクト: jsjhb/checkmk
def test_create_sections(sections, plugin_name, expected):
    assert check_plugins.create_subscribed_sections(sections,
                                                    plugin_name) == expected
コード例 #2
0
ファイル: test_check_plugins.py プロジェクト: jsjhb/checkmk
def test_create_sections_invalid(sections):
    with pytest.raises((TypeError, ValueError)):
        check_plugins.create_subscribed_sections(
            sections, None)  # type: ignore[arg-type]