Пример #1
0
def test_create_sections(sections, plugin_name, expected):
    assert check_plugins._create_sections(sections, plugin_name) == expected
Пример #2
0
def test_create_sections_invalid(sections):
    with pytest.raises((TypeError, ValueError)):
        check_plugins._create_sections(sections, None)