mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
The test helper here was taking an "expected_topic" parameter that it just ignored, and then the dialogflow tests were passing in expected messages in that slot, so the actual "expected_message" var was "None" and was ignored. So the tests weren't testing anything. Now we eliminate the crufty expected_topic parameter and require an actual value for "expected_message". I also clean up the mypy type for content_type, and I remove the `content_type is None` check, since all callers either pass in a str content type or default to "application/json".