Skip to content
This repository was archived by the owner on Aug 7, 2024. It is now read-only.

Commit eb46879

Browse files
committed
fix test assert for sender_screen_name
1 parent 4850fbc commit eb46879

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/test_direct_messages.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,13 @@ def test_get_sent_direct_messages():
5656
assert isinstance(resp, list)
5757
assert isinstance(direct_message, twitter.DirectMessage)
5858
assert direct_message.id == 678629283007303683
59-
assert [dm.sender_screen_name == 'notinourselves' for dm in resp]
6059

6160

6261
@responses.activate
6362
def test_post_direct_message():
6463
with open('testdata/direct_messages/post_post_direct_message.json', 'r') as f:
6564
responses.add(POST, DEFAULT_URL, body=f.read())
66-
resp = api.PostDirectMessage(screen_name='TheGIFingBot',
65+
resp = api.PostDirectMessage(user_id='372018022',
6766
text='https://t.co/L4MIplKUwR')
6867
assert isinstance(resp, twitter.DirectMessage)
6968
assert resp.text == 'https://t.co/L4MIplKUwR'

0 commit comments

Comments
 (0)