mirror of https://github.com/zulip/zulip.git
Prevent noops in EventsRegisterTest.
We had a couple tests in EventsRegisterTest that weren't really testing much, because they were going through codepaths with authentication problems or actions that didn't affect our user. We now assert that the code under test generates events. (imported from commit c2f61180cb420d45fa95e137433e9456394bf0ff)
This commit is contained in:
parent
662459b9e1
commit
bf85a3cebc
|
@ -179,6 +179,7 @@ class EventsRegisterTest(AuthedTestCase):
|
|||
hybrid_state = fetch_initial_state_data(self.user_profile, event_types, "")
|
||||
action()
|
||||
events = client.event_queue.contents()
|
||||
self.assertTrue(len(events) > 0)
|
||||
apply_events(hybrid_state, events, self.user_profile)
|
||||
|
||||
normal_state = fetch_initial_state_data(self.user_profile, event_types, "")
|
||||
|
|
Loading…
Reference in New Issue