mirror of https://github.com/zulip/zulip.git
test_import_export: Fix how stream.recipient_id is verified.
This commit is contained in:
parent
b064559652
commit
08780fcb95
|
@ -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:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue