zulip/zerver
Steve Howell 3a710ab996 webhook tests: Remove stream_name parameter.
Having an optional stream_name parameter makes
it confusing to read the code if you know your
webhook is sending private messages.

And then the other two callers are already
checking topics, so they might as well check
stream names, too.

We also have the two stream-oriented callers
make their own call to "subscribe".  And we
future-proof this by making sure the exception
for no-message-being-sent calls out that gotcha.

Somewhat in passing, we now assert that
self.STREAM_NAME is not None in the main
helper.  This is partly to satisfy mypy, but
it's also a good sanity check.

This also sets the stage for the next commit,
where I'll add an assert_stream_message helper.
2020-08-24 12:34:46 -07:00
..
data_import python: Replace ujson with orjson. 2020-08-11 10:55:12 -07:00
lib webhook tests: Remove stream_name parameter. 2020-08-24 12:34:46 -07:00
management python: Catch JSONDecodeError instead of ValueError when decoding JSON. 2020-08-12 11:59:59 -07:00
migrations migrations: Fix migration 0283 with orjson. 2020-08-14 11:22:03 -07:00
openapi openapi: Add enum for stream role. 2020-08-16 08:35:18 -04:00
templatetags docs: Fix various capitalization errors. 2020-08-11 10:25:52 -07:00
tests url_preview: Only extract img tags with an `src`. 2020-08-18 14:26:21 -04:00
tornado python: Catch JSONDecodeError instead of ValueError when decoding JSON. 2020-08-12 11:59:59 -07:00
views streams: Allow stream admin to update and deactivate streams. 2020-08-12 17:02:01 -07:00
webhooks webhook tests: Remove stream_name parameter. 2020-08-24 12:34:46 -07:00
worker python: Replace ujson with orjson. 2020-08-11 10:55:12 -07:00
__init__.py
apps.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
context_processors.py auth: Make apple log in and sign up buttons consistent with others. 2020-06-18 13:06:10 -07:00
decorator.py decorator: Updated user_passes_test function from Django 2.2. 2020-08-14 11:40:13 -07:00
filters.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
forms.py middleware: Make HostDomain into a process_request, not process_response. 2020-08-11 10:37:55 -07:00
logging_handlers.py docs: Capitalize Markdown consistently. 2020-08-11 10:23:06 -07:00
middleware.py sentry: Ignore all SuspiciousOperation loggers. 2020-08-12 16:08:38 -07:00
models.py streams: Add role field to Subscription objects passed to clients. 2020-08-14 16:33:11 -07:00
signals.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00