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