please go back to green
This commit is contained in:
parent
73199e966a
commit
8e21568d54
@ -316,7 +316,9 @@ def test_multiline_payload():
|
|||||||
assert listener.updates == [{"foo": "bar"}]
|
assert listener.updates == [{"foo": "bar"}]
|
||||||
|
|
||||||
@pytest.mark.vcr(match_on=['path'])
|
@pytest.mark.vcr(match_on=['path'])
|
||||||
def test_stream_user_direct(api, api2, api3):
|
def test_stream_user_direct(api, api2, api3, vcr):
|
||||||
|
vcr.match_on = ["path"]
|
||||||
|
|
||||||
# Make sure we are in the right state to not receive updates from api2
|
# Make sure we are in the right state to not receive updates from api2
|
||||||
user = api2.account_verify_credentials()
|
user = api2.account_verify_credentials()
|
||||||
api.account_unfollow(user)
|
api.account_unfollow(user)
|
||||||
@ -344,6 +346,7 @@ def test_stream_user_direct(api, api2, api3):
|
|||||||
|
|
||||||
posted = []
|
posted = []
|
||||||
def do_activities():
|
def do_activities():
|
||||||
|
vcr.match_on = ["path"]
|
||||||
time.sleep(5)
|
time.sleep(5)
|
||||||
posted.append(api.status_post("only real cars respond."))
|
posted.append(api.status_post("only real cars respond."))
|
||||||
posted.append(api2.status_post("@mastodonpy_test beep beep I'm a jeep"))
|
posted.append(api2.status_post("@mastodonpy_test beep beep I'm a jeep"))
|
||||||
@ -381,7 +384,8 @@ def test_stream_user_direct(api, api2, api3):
|
|||||||
t.join()
|
t.join()
|
||||||
|
|
||||||
@pytest.mark.vcr(match_on=['path'])
|
@pytest.mark.vcr(match_on=['path'])
|
||||||
def test_stream_user_local(api, api2):
|
def test_stream_user_local(api, api2, vcr):
|
||||||
|
vcr.match_on = ["path"]
|
||||||
# Make sure we are in the right state to not receive updates from api2
|
# Make sure we are in the right state to not receive updates from api2
|
||||||
user = api2.account_verify_credentials()
|
user = api2.account_verify_credentials()
|
||||||
api.account_unfollow(user)
|
api.account_unfollow(user)
|
||||||
@ -412,13 +416,15 @@ def test_stream_user_local(api, api2):
|
|||||||
t.join()
|
t.join()
|
||||||
|
|
||||||
@pytest.mark.vcr(match_on=['path'])
|
@pytest.mark.vcr(match_on=['path'])
|
||||||
def test_stream_direct(api, api2):
|
def test_stream_direct(api, api2, vcr):
|
||||||
|
vcr.match_on = ["path"]
|
||||||
conversations = []
|
conversations = []
|
||||||
listener = CallbackStreamListener(
|
listener = CallbackStreamListener(
|
||||||
conversation_handler=conversations.append,
|
conversation_handler=conversations.append,
|
||||||
)
|
)
|
||||||
|
|
||||||
def do_activities():
|
def do_activities():
|
||||||
|
vcr.match_on = ["path"]
|
||||||
time.sleep(5)
|
time.sleep(5)
|
||||||
api2.status_post("@mastodonpy_test todo funny text here", visibility = "direct")
|
api2.status_post("@mastodonpy_test todo funny text here", visibility = "direct")
|
||||||
time.sleep(10)
|
time.sleep(10)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user