@pytest.fixture
def twit(statuses):

    mock_twit = mock.MagicMock(spec=twitter.TwitterStream)
    mock_twit.statuses = statuses
    mock_twit.search = statuses
    return mock_twit
invalid category
dataset/ETHPy150Open a-tal/pyweet/test/test_base.py/twit--crossover with--dataset/ETHPy150Open nitely/Spirit/spirit/category/tests.py/CategoryViewTest.test_category_detail_view_invalid_category