Skip to content

Commit

Permalink
Merge pull request #695 from DocNow/disable-filter-tests
Browse files Browse the repository at this point in the history
Disable filter tests
  • Loading branch information
edsu authored Mar 21, 2023
2 parents c8d71be + a1a89a8 commit 6d9b68f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test_twarc.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ def test_geocode():
assert found


@pytest.mark.skip(reason="v1.1 filter API disabled March 2023")
def test_track():
tweet = next(T.filter(track="obama"))
json_str = json.dumps(tweet)
Expand All @@ -141,6 +142,7 @@ def test_track():
T.connect()


@pytest.mark.skip(reason="v1.1 filter API disabled March 2023")
def test_keepalive():
for event in T.filter(track="abcdefghiklmno", record_keepalive=True):
if event == "keep-alive":
Expand All @@ -150,6 +152,7 @@ def test_keepalive():
T.connect()


@pytest.mark.skip(reason="v1.1 filter API disabled March 2023")
def test_follow():
user_ids = [
"87818409", # @guardian
Expand Down Expand Up @@ -187,6 +190,7 @@ def test_follow():
T.connect()


@pytest.mark.skip(reason="v1.1 filter API disabled March 2023")
def test_locations():
# look for tweets from New York ; the bounding box is larger than NYC
# so hopefully we'll find one from New York in the first 100?
Expand All @@ -207,6 +211,7 @@ def test_locations():
T.connect()


@pytest.mark.skip(reason="v1.1 filter API disabled March 2023")
def test_languages():
count = 0
ok = True
Expand Down Expand Up @@ -679,6 +684,7 @@ def test_http_error_sample():
next(t.sample())


@pytest.mark.skip(reason="v1.1 filter API disabled March 2023")
def test_http_error_filter():
t = twarc.Twarc(
"consumer_key",
Expand Down Expand Up @@ -814,6 +820,7 @@ def test_csv_retweet_hashtag():
assert False


@pytest.mark.skip(reason="v1.1 filter API disabled March 2023")
def test_truncated_text():
for tweet in T.filter("tweet"):
if tweet["truncated"] == True:
Expand Down

0 comments on commit 6d9b68f

Please sign in to comment.