mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-27 18:13:58 +00:00 
			
		
		
		
	events: Add heartbeat events to tests and documentation.
Heartbeat events are an important part of the API, even though they are noops, so it's important to document them.
This commit is contained in:
		| @@ -288,6 +288,23 @@ def check_has_zoom_token( | ||||
|     assert event["value"] == value | ||||
|  | ||||
|  | ||||
| heartbeat_event = event_dict_type( | ||||
|     required_keys=[ | ||||
|         # force vertical | ||||
|         ("type", Equals("heartbeat")), | ||||
|     ] | ||||
| ) | ||||
| _check_hearbeat = make_checker(heartbeat_event) | ||||
|  | ||||
|  | ||||
| def check_heartbeat( | ||||
|     # force vertical | ||||
|     var_name: str, | ||||
|     event: Dict[str, object], | ||||
| ) -> None: | ||||
|     _check_hearbeat(var_name, event) | ||||
|  | ||||
|  | ||||
| _hotspot = DictType( | ||||
|     required_keys=[ | ||||
|         # force vertical | ||||
|   | ||||
		Reference in New Issue
	
	Block a user