Exemplo n.º 1
0
def test_split_choices_multi_items_multi_sep():
    assert GetParams.split_choices(
        s=CHOICES_MULTI,
        sep=SEP_MULTI,
    ) == CHOICES_MULTI_SPLIT_MULTI_SEP
Exemplo n.º 2
0
def test_split_choices_one_item():
    assert GetParams.split_choices(s=CHOICES, ) == CHOICES_SPLIT
Exemplo n.º 3
0
def test_split_choices_wrong_type_s():
    with pytest.raises(TypeError):
        GetParams.split_choices(s=LIST, )
Exemplo n.º 4
0
def test_split_choices_wrong_type_sep_2():
    with pytest.raises(TypeError):
        GetParams.split_choices(
            s=UNSANITIZED,
            sep=LIST,
        )
Exemplo n.º 5
0
def test_split_choices_no_args():
    with pytest.raises(TypeError):
        GetParams.split_choices()