def test_create_sections(sections, plugin_name, expected): assert check_plugins._create_sections(sections, plugin_name) == expected
def test_create_sections_invalid(sections): with pytest.raises((TypeError, ValueError)): check_plugins._create_sections(sections, None)