@pytest.mark.parametrize('test_input,expected', [({'air_date__lte': '2022-03-01'}, 1), ({'air_date__gte': '2022-04-01'}, 4), ({'air_date__gte': '2022-03-01', 'air_date__lte': '2022-05-01'}, 3)])
def test_date_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', [({'air_date__lte': '2022-03-01'}, 1), ({'air_date__gte': '2022-04-01'}, 4), ({'air_date__gte': '2022-03-01', 'air_date__lte': '2022-05-01'}, 3)])
def test_date_search_episode(db, setup, test_input, expected):
    obj_in = EpisodeSearch(**test_input)
    assert (len(crud.episode.search(db, obj_in)) == expected)