@pytest.mark.parametrize('test_input,expected', [({'name__icontains': 'Nibelheim'}, 0), ({'name__icontains': 'Midgar'}, 1), ({'name__icontains': 'mId'}, 1), ({'name__icontains': 'GaR'}, 1)])
def test_name_search_episode(db, setup, test_input, expected):
    obj_in = EpisodeSearch(**test_input)
    assert (len(crud.episode.search(db, obj_in)) == expected)
@pytest.mark.parametrize('test_input,expected', [({'name__icontains': 'Nibelheim'}, 0), ({'name__icontains': 'Midgar'}, 1), ({'name__icontains': 'mId'}, 1), ({'name__icontains': 'GaR'}, 1)])
def test_name_search_episode(db, setup, test_input, expected):
    obj_in = EpisodeSearch(**test_input)
    assert (len(crud.episode.search(db, obj_in)) == expected)