Skip to content

Commit

Permalink
bluesky: fix test for upload with refresh token failure
Browse files Browse the repository at this point in the history
needed to actually read from input stream
  • Loading branch information
snarfed committed Apr 30, 2024
1 parent 28a069d commit 4cd86e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion granary/tests/test_bluesky.py
Original file line number Diff line number Diff line change
Expand Up @@ -2094,7 +2094,7 @@ def check_posts(url, data=None, **kwargs):
nonlocal cur
cur += 1
if url.endswith('.uploadBlob'):
self.assertEqual(b'pic data', data.getvalue())
self.assertEqual(b'pic data', data.read())
return post_resps[cur]

mock_post.side_effect = check_posts
Expand Down

0 comments on commit 4cd86e6

Please sign in to comment.