mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
We assert that the post was successful, to give more immediate feedback for tests that don't bother to check the return value and may be implicitly assuming this method just works in all cases. And we also make it more convenient for tests that are happy-path tests--they don't have to do the assertion themselves. (And they're still free to do deeper checks on the json.) We opt out with allow_fail=True. We probably want a more direct API eventually for tests that are clearly trying to test the failure path for subscribing to streams. It's possible that a couple tests here that I added allow_fail=True to just have flawed data setup-- I don't have time to investigate all cases, but hopefully they will at least stand out more.
42 KiB
42 KiB