Exemple #1
0
def test_create_sections(sections, plugin_name, expected):
    assert check_plugins.create_subscribed_sections(sections,
                                                    plugin_name) == expected
Exemple #2
0
def test_create_sections_invalid(sections):
    with pytest.raises((TypeError, ValueError)):
        check_plugins.create_subscribed_sections(
            sections, None)  # type: ignore[arg-type]