mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
tests: Create default RemoteRealms in populate_db.
This default setup will be more realistic, matching the ordinary conditions for a modern server. Especially needed as we add bouncer code that will expect to have RemoteRealm entries for realm_uuid values for which it receives requests.
This commit is contained in:
committed by
Tim Abbott
parent
a67dd6dc1f
commit
c9b0602320
@@ -116,6 +116,10 @@ class AnalyticsTestCase(ZulipTestCase):
|
||||
# used as defaults in self.assert_table_count
|
||||
self.current_property: Optional[str] = None
|
||||
|
||||
# Delete RemoteRealm registrations to have a clean slate - the relevant
|
||||
# tests want to construct this from scratch.
|
||||
RemoteRealm.objects.all().delete()
|
||||
|
||||
# Lightweight creation of users, streams, and messages
|
||||
def create_user(self, **kwargs: Any) -> UserProfile:
|
||||
self.name_counter += 1
|
||||
|
||||
Reference in New Issue
Block a user