Skip to content

Commit 855efa0

Browse files
committed
test_atproto: update tests for snarfed/granary@ac0bc42
1 parent ddbd7f3 commit 855efa0

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tests/test_atproto.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ def test_convert_populate_cid(self):
270270
'uri': 'at://did:plc:bob/app.bsky.feed.post/tid',
271271
'cid': 'my sidd',
272272
},
273-
'createdAt': '2022-01-02T03:04:05+00:00',
273+
'createdAt': '2022-01-02T03:04:05.000Z',
274274
}, ATProto.convert(Object(our_as1={
275275
'objectType': 'activity',
276276
'verb': 'like',
@@ -283,7 +283,7 @@ def test_convert_populate_cid(self):
283283
'uri': 'at://did:plc:bob/app.bsky.feed.post/tid',
284284
'cid': 'my sidd',
285285
},
286-
'createdAt': '2022-01-02T03:04:05+00:00',
286+
'createdAt': '2022-01-02T03:04:05.000Z',
287287
}, ATProto.convert(Object(our_as1={
288288
'objectType': 'activity',
289289
'verb': 'share',
@@ -293,7 +293,7 @@ def test_convert_populate_cid(self):
293293
self.assertEqual({
294294
'$type': 'app.bsky.feed.post',
295295
'text': 'foo',
296-
'createdAt': '2022-01-02T03:04:05+00:00',
296+
'createdAt': '2022-01-02T03:04:05.000Z',
297297
'reply': {
298298
'$type': 'app.bsky.feed.post#replyRef',
299299
'root': {
@@ -606,7 +606,7 @@ def test_send_like(self, mock_create_task):
606606
'uri': 'at://did:plc:bob/app.bsky.feed.post/tid',
607607
'cid': 'bafyCID',
608608
},
609-
'createdAt': '2022-01-02T03:04:05+00:00',
609+
'createdAt': '2022-01-02T03:04:05.000Z',
610610
}, record)
611611

612612
at_uri = f'at://{did}/app.bsky.feed.like/{last_tid}'
@@ -638,7 +638,7 @@ def test_send_repost(self, mock_create_task):
638638
'uri': 'at://did/app.bsky.feed.post/tid',
639639
'cid': '',
640640
},
641-
'createdAt': '2022-01-02T03:04:05+00:00',
641+
'createdAt': '2022-01-02T03:04:05.000Z',
642642
}, record)
643643

644644
at_uri = f'at://{did}/app.bsky.feed.repost/{last_tid}'
@@ -667,7 +667,7 @@ def test_send_follow(self, mock_create_task):
667667
self.assertEqual({
668668
'$type': 'app.bsky.graph.follow',
669669
'subject': 'did:plc:bob',
670-
'createdAt': '2022-01-02T03:04:05+00:00',
670+
'createdAt': '2022-01-02T03:04:05.000Z',
671671
}, record)
672672

673673
at_uri = f'at://{did}/app.bsky.graph.follow/{last_tid}'
@@ -747,7 +747,7 @@ def test_send_translates_ids(self, mock_create_task):
747747
record = repo.get_record('app.bsky.feed.post', last_tid)
748748
self.assertEqual({
749749
'$type': 'app.bsky.feed.post',
750-
'createdAt': '2022-01-02T03:04:05+00:00',
750+
'createdAt': '2022-01-02T03:04:05.000Z',
751751
'text': 'foo',
752752
'reply': {
753753
'$type': 'app.bsky.feed.post#replyRef',
@@ -947,7 +947,7 @@ def test_poll_posts(self, mock_get, mock_create_task):
947947
'did': 'did:web:bob.com',
948948
'handle': 'bob.com',
949949
},
950-
'indexedAt': '2022-01-02T03:04:05+00:00',
950+
'indexedAt': '2022-01-02T03:04:05.000Z',
951951
},
952952
}],
953953
}),

0 commit comments

Comments
 (0)