mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-30 19:43:47 +00:00 
			
		
		
		
	support: Update remote server support search test.
Creates some reusable helper functions and adds remote realms to the search results that are checked, which gives coverage for the remote realm user counts in the support view.
This commit is contained in:
		
				
					committed by
					
						 Tim Abbott
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							22e035d8e2
						
					
				
				
					commit
					653901fc30
				
			| @@ -155,7 +155,7 @@ def get_current_plan_data_for_support_view(billing_session: BillingSession) -> P | ||||
| def get_data_for_support_view(billing_session: BillingSession) -> SupportData: | ||||
|     if isinstance(billing_session, RemoteServerBillingSession): | ||||
|         user_data = get_remote_server_guest_and_non_guest_count(billing_session.remote_server.id) | ||||
|     else:  # nocoverage | ||||
|     else: | ||||
|         assert isinstance(billing_session, RemoteRealmBillingSession) | ||||
|         user_data = get_remote_realm_guest_and_non_guest_count(billing_session.remote_realm) | ||||
|     plan_data = get_current_plan_data_for_support_view(billing_session) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user