fix test_integrations for g.user minimizing in #690

pull/731/head
Ryan Barrett 2023-11-19 21:52:53 -08:00
rodzic eb7da31873
commit c593a80ee9
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6BE31FDF4776E9D4
1 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -92,8 +92,9 @@ class IntegrationTests(TestCase):
resp = self.post('/queue/atproto-poll-notifs', client=hub.app.test_client())
self.assertEqual(200, resp.status_code)
g.user = alice
test_web.WebTest().assert_deliveries(mock_post, ['http://inst/bob/inbox'], data={
web_test = test_web.WebTest()
web_test.user = alice
web_test.assert_deliveries(mock_post, ['http://inst/bob/inbox'], data={
'@context': 'https://www.w3.org/ns/activitystreams',
'type': 'Create',
'id': 'https://atproto.brid.gy/convert/ap/at://did:plc:alice/app.bsky.feed.post/456#bridgy-fed-create',