Skip to content

Commit 6d9b68f

Browse files
authored
Merge pull request #695 from DocNow/disable-filter-tests
Disable filter tests
2 parents c8d71be + a1a89a8 commit 6d9b68f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test_twarc.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ def test_geocode():
131131
assert found
132132

133133

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

143144

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

152154

155+
@pytest.mark.skip(reason="v1.1 filter API disabled March 2023")
153156
def test_follow():
154157
user_ids = [
155158
"87818409", # @guardian
@@ -187,6 +190,7 @@ def test_follow():
187190
T.connect()
188191

189192

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

209213

214+
@pytest.mark.skip(reason="v1.1 filter API disabled March 2023")
210215
def test_languages():
211216
count = 0
212217
ok = True
@@ -679,6 +684,7 @@ def test_http_error_sample():
679684
next(t.sample())
680685

681686

687+
@pytest.mark.skip(reason="v1.1 filter API disabled March 2023")
682688
def test_http_error_filter():
683689
t = twarc.Twarc(
684690
"consumer_key",
@@ -814,6 +820,7 @@ def test_csv_retweet_hashtag():
814820
assert False
815821

816822

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

0 commit comments

Comments
 (0)