kopia lustrzana https://github.com/snarfed/bridgy-fed
fix test_integrations for g.user minimizing in #690
rodzic
eb7da31873
commit
c593a80ee9
|
@ -92,8 +92,9 @@ class IntegrationTests(TestCase):
|
||||||
resp = self.post('/queue/atproto-poll-notifs', client=hub.app.test_client())
|
resp = self.post('/queue/atproto-poll-notifs', client=hub.app.test_client())
|
||||||
self.assertEqual(200, resp.status_code)
|
self.assertEqual(200, resp.status_code)
|
||||||
|
|
||||||
g.user = alice
|
web_test = test_web.WebTest()
|
||||||
test_web.WebTest().assert_deliveries(mock_post, ['http://inst/bob/inbox'], data={
|
web_test.user = alice
|
||||||
|
web_test.assert_deliveries(mock_post, ['http://inst/bob/inbox'], data={
|
||||||
'@context': 'https://www.w3.org/ns/activitystreams',
|
'@context': 'https://www.w3.org/ns/activitystreams',
|
||||||
'type': 'Create',
|
'type': 'Create',
|
||||||
'id': 'https://atproto.brid.gy/convert/ap/at://did:plc:alice/app.bsky.feed.post/456#bridgy-fed-create',
|
'id': 'https://atproto.brid.gy/convert/ap/at://did:plc:alice/app.bsky.feed.post/456#bridgy-fed-create',
|
||||||
|
|
Ładowanie…
Reference in New Issue