rht
4a07214725
zerver/tests: Use python 3 syntax for typing.
2017-11-18 15:41:16 -08:00
rht
6c28c7e879
zerver/tests: Use python 3 syntax for typing.
2017-11-18 15:35:57 -08:00
Tim Abbott
462b7a1b3c
tests: Expand test coverage of OurAuthenticationForm.
...
This adds tests for a new more cases. Some were already covered
elsewhere in the codebase, but it feels best for LoginTest to fully
cover OurAuthenticationForm.
2017-11-17 17:31:38 -08:00
Tim Abbott
1ed50ee858
tests: Pass a realm option to login for non-zulip realms.
...
This better matches the model of how having multiple realms should
work: you need to specify which realm you're logging into.
2017-11-17 15:32:42 -08:00
Tim Abbott
1e334f41ed
test_subs: Fix nondeterministic failures in default stream tests.
...
Here we sort the streams before comparing them.
2017-11-17 15:32:42 -08:00
derAnfaenger
395f1e9270
embedded bots: Add database config storage.
...
Storage limititations are only set on the value of
a config entry, since this is the only user-accessible
part of the schema. Keys are statically set by each
embedded bot.
2017-11-16 23:06:38 -08:00
Tim Abbott
8dc82f97c7
python: Wrap long def lines in test files.
...
We don't have our linter checking test files due to ultra-long strings
that are often present in test output that we verify. But it's worth
at least cleaning out all the ultra-long def lines.
2017-11-16 22:00:53 -08:00
rht
4f5b1c0a5a
zerver/tests: Use python 3 syntax for typing in most files.
2017-11-16 21:52:01 -08:00
Vishnu Ks
068912ca7d
tests: Add test for default stream group signup flow.
2017-11-16 21:17:31 -08:00
Vishnu Ks
cc553125a1
tests: Move check_user_subscribed_only_to_streams to test_classes ZulipTestCase.
2017-11-16 21:17:31 -08:00
Vishnu Ks
1b9b142d51
test_signup: Store return value of sorted.
...
Sorted does not sort in-place.
2017-11-16 21:17:31 -08:00
Harshit Bansal
d9c2f613e3
api: Add new endpoint for reactions.
...
This endpoint will allow us to add/delete emoji reactions whose emoji
got renamed during various emoji infra changes. This was also a
required change for realm emoji migration.
This commit was tweaked significantly by tabbott for greater clarity
(with no changes to the actual logic).
2017-11-16 20:52:15 -08:00
Tim Abbott
638eb7a8e4
docs: Update links to ReadTheDocs to always use https.
...
This is better security practice.
We also add a lint rule to enforce this for the future.
2017-11-16 10:59:24 -08:00
Tim Abbott
054952a44a
docs: Update links from codebase to point to ReadTheDocs.
2017-11-16 10:53:49 -08:00
Harshit Bansal
5e5bb02e39
bugdown: Remove `make_realm_filters()`.
...
This commit removes `make_realm_filters()` and merges its functionality
in `make_md_engine()` and `maybe_update_markdown_engines()`.
2017-11-15 22:47:11 -08:00
Harshit Bansal
e615a2ab4f
bugdown: Simplify the "opts" parameter of `make_md_engine()`.
2017-11-15 22:47:11 -08:00
Harshit Bansal
e3f2f67d0e
bugdown: Rename `maybe_update_realm_filters()`.
...
This commit renames `maybe_update_realm_filters()` to
`maybe_update_markdown_engines()` which sounds closer
to the semantics.
2017-11-15 22:47:11 -08:00
Umair Khan
98be0cc502
user-groups: Send delete user group event.
...
Fixes #7380
2017-11-15 22:35:43 -08:00
Umair Khan
79f4a7627f
user-groups: Send remove members event.
2017-11-15 22:35:23 -08:00
Umair Khan
cec3f19366
user-groups: Send add members event.
2017-11-15 22:35:23 -08:00
Umair Khan
eb48fab495
user-groups: Send description update event.
2017-11-15 22:35:23 -08:00
Umair Khan
5571122120
user-groups: Send name update event.
2017-11-15 22:35:23 -08:00
Umair Khan
912505317a
user-groups: Send create group event.
2017-11-15 22:35:23 -08:00
Tim Abbott
f02e5b90f6
cross_realm: Use bulk_get_users to fix handling of missing users.
...
This fixes a regression in ae5ba7f4fd
,
where Zulip would 500 if the newly added system bots didn't exist on
the server.
This also fixes a moderate size performance problem where we'd fetch 5
users from memcached or the database in a loop.
2017-11-15 21:24:51 -08:00
Brock Whittaker
f9f0f356be
settings: Add backend storage and interface for night mode.
...
This allows the night mode setting to be stored in the backend.
2017-11-15 16:36:06 -08:00
Tim Abbott
85844107fd
integrations: Remove code for legacy Hubot lozenges.
...
We no longer display the only model anyway.
2017-11-15 14:04:19 -08:00
Steve Howell
dbcc76b996
Fix MissedMessageWorker.
...
This fixes a regression in 25c669df52
.
We were draining the queue in both the superclass and the subclass,
so by the time the subclass started processing events, there were
no events to process. Now the subclass properly uses the events
passed in from the superclass.
2017-11-15 10:26:28 -08:00
Steve Howell
ae5ba7f4fd
Add a couple cross-realm bots.
...
These are new:
new-user-bot
emailgateway
Our cross-realm bots are hard coded to have email addresses
in the `zulip.com` domain, and they're not part of ordinary
realms.
These have always been cross-realm, but new enforcement in the
frontend code of all messages having been sent by a known user means
that it's important to add these properly.
2017-11-14 16:02:19 -08:00
Vishnu Ks
36f29764cb
emails: Add option to forward mails send in dev env to external email.
...
Fixes #7085 .
2017-11-14 15:27:29 -08:00
Vishnu Ks
d2555e8769
api: Add support to change name of default stream groups.
2017-11-14 14:41:42 -08:00
Vishnu Ks
2af249dd5d
api: Add description attribute to default stream group.
2017-11-14 14:41:42 -08:00
Vishnu Ks
f45ba7de93
api: Pass group id instead of name to default stream group api.
2017-11-14 14:41:42 -08:00
Tim Abbott
a86968cd44
landing_nav: Fix missing login_link_disabled check.
...
This caused login links to incorrectly appear on the zulipchat.com
homepage.
2017-11-13 17:07:17 -08:00
Umair Khan
ad8f5650a3
user-groups: Generate test data of user groups.
2017-11-13 13:08:15 +05:00
derAnfaenger
25bf15a3c9
bots: Use non-generic exception for state key removal.
2017-11-10 18:56:26 -08:00
derAnfaenger
8fccf36246
bots: Wrap StateError exceptions around BotUserData exceptions.
2017-11-10 18:56:26 -08:00
derAnfaenger
d707e3bc1d
bots: Add USER_STATE_SIZE_LIMIT setting.
2017-11-10 18:56:26 -08:00
derAnfaenger
545c73c79e
bots: Rename StateHandlerError to StateError.
2017-11-10 18:54:54 -08:00
derAnfaenger
71372610e3
bots: Validate state size limit directly in set_bot_state().
2017-11-10 18:54:39 -08:00
derAnfaenger
6c543d1280
bots: Make StateHandler test more accurate.
2017-11-10 18:45:52 -08:00
Tim Abbott
54aa87fba3
api: Migrate to using the new version of the API site.
2017-11-10 17:56:22 -08:00
Tim Abbott
a23378a304
check_short_string: Verify string before checking length.
...
While the previous implementation was correct, this should give better
error messages.
2017-11-10 16:37:43 -08:00
Vishnu Ks
f44b60a150
Implement API for default stream groups.
2017-11-10 16:05:36 -08:00
Eeshan Garg
9c2cab50ca
test_docs: Verify that all of our integrations/ docs are rendered.
...
Fixes #7360 .
2017-11-10 20:11:55 -03:30
derAnfaenger
032fad2cf1
queue_processors: Add error coverage for MessageSenderWorker.
2017-11-10 13:23:53 -08:00
derAnfaenger
d9571698f2
queue_processors: Add coverage for get_active_worker_queues().
2017-11-10 13:23:53 -08:00
derAnfaenger
7777a81dbf
queue_processors: Add full coverage for SlowQuery.
2017-11-10 13:23:53 -08:00
Steve Howell
b6ebead827
tests: Add test_raw_unread_stream().
2017-11-10 10:50:57 -08:00
Steve Howell
23f7615adb
tests: Add test_raw_unread_huddle().
2017-11-10 10:50:57 -08:00
Steve Howell
db8c69ff03
tests: Add test_raw_unread_personal().
2017-11-10 10:50:57 -08:00