test_import_export: Fix how stream.recipient_id is verified.

This commit is contained in:
Mateusz Mandera 2020-03-15 18:52:27 +01:00 committed by Tim Abbott
parent b064559652
commit 08780fcb95
1 changed files with 2 additions and 1 deletions

View File

@ -1010,7 +1010,8 @@ class ImportExportTest(ZulipTestCase):
self.assertEqual(user_profile.recipient_id, Recipient.objects.get(type=Recipient.PERSONAL, self.assertEqual(user_profile.recipient_id, Recipient.objects.get(type=Recipient.PERSONAL,
type_id=user_profile.id).id) type_id=user_profile.id).id)
for stream in Stream.objects.filter(realm=imported_realm): for stream in Stream.objects.filter(realm=imported_realm):
self.assertEqual(stream.recipient_id, stream.recipient.id) self.assertEqual(stream.recipient_id, Recipient.objects.get(type=Recipient.STREAM,
type_id=stream.id).id)
def test_import_files_from_local(self) -> None: def test_import_files_from_local(self) -> None: