def test_cant_search_without_params(): explorer = FootballExplorer(csv_file_name='test_data.csv') with pytest.raises(ValueError): next(explorer.search())