@@ -270,7 +270,7 @@ def test_convert_populate_cid(self):
270
270
'uri' : 'at://did:plc:bob/app.bsky.feed.post/tid' ,
271
271
'cid' : 'my sidd' ,
272
272
},
273
- 'createdAt' : '2022-01-02T03:04:05+00:00 ' ,
273
+ 'createdAt' : '2022-01-02T03:04:05.000Z ' ,
274
274
}, ATProto .convert (Object (our_as1 = {
275
275
'objectType' : 'activity' ,
276
276
'verb' : 'like' ,
@@ -283,7 +283,7 @@ def test_convert_populate_cid(self):
283
283
'uri' : 'at://did:plc:bob/app.bsky.feed.post/tid' ,
284
284
'cid' : 'my sidd' ,
285
285
},
286
- 'createdAt' : '2022-01-02T03:04:05+00:00 ' ,
286
+ 'createdAt' : '2022-01-02T03:04:05.000Z ' ,
287
287
}, ATProto .convert (Object (our_as1 = {
288
288
'objectType' : 'activity' ,
289
289
'verb' : 'share' ,
@@ -293,7 +293,7 @@ def test_convert_populate_cid(self):
293
293
self .assertEqual ({
294
294
'$type' : 'app.bsky.feed.post' ,
295
295
'text' : 'foo' ,
296
- 'createdAt' : '2022-01-02T03:04:05+00:00 ' ,
296
+ 'createdAt' : '2022-01-02T03:04:05.000Z ' ,
297
297
'reply' : {
298
298
'$type' : 'app.bsky.feed.post#replyRef' ,
299
299
'root' : {
@@ -606,7 +606,7 @@ def test_send_like(self, mock_create_task):
606
606
'uri' : 'at://did:plc:bob/app.bsky.feed.post/tid' ,
607
607
'cid' : 'bafyCID' ,
608
608
},
609
- 'createdAt' : '2022-01-02T03:04:05+00:00 ' ,
609
+ 'createdAt' : '2022-01-02T03:04:05.000Z ' ,
610
610
}, record )
611
611
612
612
at_uri = f'at://{ did } /app.bsky.feed.like/{ last_tid } '
@@ -638,7 +638,7 @@ def test_send_repost(self, mock_create_task):
638
638
'uri' : 'at://did/app.bsky.feed.post/tid' ,
639
639
'cid' : '' ,
640
640
},
641
- 'createdAt' : '2022-01-02T03:04:05+00:00 ' ,
641
+ 'createdAt' : '2022-01-02T03:04:05.000Z ' ,
642
642
}, record )
643
643
644
644
at_uri = f'at://{ did } /app.bsky.feed.repost/{ last_tid } '
@@ -667,7 +667,7 @@ def test_send_follow(self, mock_create_task):
667
667
self .assertEqual ({
668
668
'$type' : 'app.bsky.graph.follow' ,
669
669
'subject' : 'did:plc:bob' ,
670
- 'createdAt' : '2022-01-02T03:04:05+00:00 ' ,
670
+ 'createdAt' : '2022-01-02T03:04:05.000Z ' ,
671
671
}, record )
672
672
673
673
at_uri = f'at://{ did } /app.bsky.graph.follow/{ last_tid } '
@@ -747,7 +747,7 @@ def test_send_translates_ids(self, mock_create_task):
747
747
record = repo .get_record ('app.bsky.feed.post' , last_tid )
748
748
self .assertEqual ({
749
749
'$type' : 'app.bsky.feed.post' ,
750
- 'createdAt' : '2022-01-02T03:04:05+00:00 ' ,
750
+ 'createdAt' : '2022-01-02T03:04:05.000Z ' ,
751
751
'text' : 'foo' ,
752
752
'reply' : {
753
753
'$type' : 'app.bsky.feed.post#replyRef' ,
@@ -947,7 +947,7 @@ def test_poll_posts(self, mock_get, mock_create_task):
947
947
'did' : 'did:web:bob.com' ,
948
948
'handle' : 'bob.com' ,
949
949
},
950
- 'indexedAt' : '2022-01-02T03:04:05+00:00 ' ,
950
+ 'indexedAt' : '2022-01-02T03:04:05.000Z ' ,
951
951
},
952
952
}],
953
953
}),
0 commit comments