示例#1
0
def test_statuses_filter_track(samp_auth):
    """
    Run statuses filter with track keywords.
    """

    track = TEST_QUERY

    iterable = stream.statuses_filter(samp_auth, track=track)
    iterable = islice(iterable, 5)
    for line in iterable:
        pass
示例#2
0
def test_statuses_filter_track(samp_auth):
    """
    Run statuses filter with track keywords.
    """

    track = TEST_QUERY

    iterable = stream.statuses_filter(samp_auth, track=track)
    iterable = islice(iterable, 5)
    for line in iterable:
        pass
示例#3
0
def test_statuses_filter_follow(samp_auth):
    """
    Run statuses filter with follow ids.
    """

    follow = [uid for uid, _ in TEST_USERS]

    iterable = stream.statuses_filter(samp_auth, follow=follow)
    iterable = islice(iterable, 1)
    for line in iterable:
        pass
示例#4
0
def test_statuses_filter_follow(samp_auth):
    """
    Run statuses filter with follow ids.
    """

    follow = [uid for uid, _ in TEST_USERS]

    iterable = stream.statuses_filter(samp_auth, follow=follow)
    iterable = islice(iterable, 1)
    for line in iterable:
        pass