Example #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
Example #2
0
def test_split_choices_one_item():
    assert GetParams.split_choices(s=CHOICES, ) == CHOICES_SPLIT
Example #3
0
def test_split_choices_wrong_type_s():
    with pytest.raises(TypeError):
        GetParams.split_choices(s=LIST, )
Example #4
0
def test_split_choices_wrong_type_sep_2():
    with pytest.raises(TypeError):
        GetParams.split_choices(
            s=UNSANITIZED,
            sep=LIST,
        )
Example #5
0
def test_split_choices_no_args():
    with pytest.raises(TypeError):
        GetParams.split_choices()