Tim Abbott
5195d1ecb7
Fix missing newlines at ends of JSON files.
2016-04-14 10:48:52 -07:00
Tim Abbott
1bf11f6b7f
Split FileUploadTest out of S3Test.
...
S3Test is now only the S3-specific test (which isn't even run), so we
can now invest in making FileUploadTest have good coverage of the
(local) file upload code paths.
2016-04-14 10:35:10 -07:00
Tim Abbott
26463bb34d
Fix nondeterministic subscriptions for default test users.
...
Previously, the UserProfile objects were created in the order
generated by a Set, which meant tests would randomly start failing if
the code that runs before this part of populate_db changed (and thus
caused the Set object used to pass users into bulk_create_users to
have a different order when enumerated).
This fixes the issue in two ways -- one by sorting the users inside
bulk_create_users, and second by attaching subscriptions to users
based on a deterministic ordering.
2016-04-13 13:19:02 -07:00
Tim Abbott
f6edc21981
Change stream used in test_get_old_messages_with_only_searching_anchor.
...
This prevents this test from breaking when in a few commits we fix a
nondeterminism issue in the populate_db test fixtures.
2016-04-13 13:19:02 -07:00
Tim Abbott
ffccb572f0
Don't autoreload Tornado when running inside test suite.
...
The restarted Tornado processes seemed to escape the process group and
thus continue running after run-dev.py finished.
While we're at it, we don't need to dump/reload event queues in the
test suite either.
2016-04-13 13:19:01 -07:00
Tim Abbott
47879c5e00
Fix nondeterminism in test_successful_subscriptions_add.
...
Previously this test would fail if the streams list generated by
populate_db contained more than 2 streams.
2016-04-13 13:18:24 -07:00
Tim Abbott
fb55fcef1e
Fix missing zerver/tests/__init__.py.
2016-04-11 22:34:22 -07:00
Tim Abbott
be96cf809d
Move Zulip backend tests to zerver.tests.
2016-04-11 22:16:09 -07:00
Ashish
1bf644369f
Delete old route for json/update_active_status.
2016-04-11 21:38:23 -07:00
Ashish
78b9f45bf7
Delete old route for json/update_pointer.
2016-04-11 21:38:23 -07:00
Ashish
9429358795
Delete old route for /json/get_profile.
2016-04-11 21:38:23 -07:00
Ashish
42fe918138
Delete old route for json/get_old_messages.
2016-04-11 21:38:23 -07:00
Ashish
cfefc94200
Delete old route for json/set_alert_words.
2016-04-11 21:38:23 -07:00
Ashish
c0a218edfc
Delete old route for /json/update_message_flags.
2016-04-11 21:38:23 -07:00
Ashish
a12006d86f
Replace /json/update_active_status with REST style route.
2016-04-11 21:38:23 -07:00
Ashish
6356584f84
Replace /json/update_pointer with REST style route.
2016-04-11 21:38:23 -07:00
Ashish
b8ec8f5ef0
Replace /json/get_profile with REST style route.
2016-04-11 21:38:23 -07:00
Ashish
cb8da46bbf
Replace /json/get_old_messages with REST style route.
2016-04-11 21:38:23 -07:00
Ashish
8fc8717409
Replace json/set_alert_words with REST style route.
2016-04-11 21:38:22 -07:00
Ashish
41993ef2f5
Replace /json/update_message_flags with REST style route.
2016-04-11 21:38:22 -07:00
Ashish
dac4e58b91
Changes REST API backend route for /json/change_enter_sends.
2016-04-11 21:11:51 -07:00
Tim Abbott
b61d73fc93
Delete unused old StreamColor model.
2016-04-08 13:06:04 -07:00
Ashish
9cfa7d5765
Annotation of zerver/lib/handlers.py.
2016-04-08 11:18:36 -07:00
Ashish
86a8d3d0f5
Annotation of zerver/lib/rate_limiter.py
2016-04-08 11:18:36 -07:00
Ashish
2f8c717e52
List to tuple conversion for consistency in user rules zerver/lib/rate_limiter.py.
2016-04-08 11:18:35 -07:00
Ashish
8abca4f319
Annotation of zerver/lib/migrate.py
2016-04-08 11:18:35 -07:00
Ashish
038af80889
Annotation of zerver/lib/statistics.py
2016-04-08 11:11:58 -07:00
Ashish
2cf8731444
Annotation of zerver/lib/alert_words.py
2016-04-08 11:11:58 -07:00
Anindya Chakravarti
f3d03d89b4
Add integration for Yo App.
...
[includes some small tweaks by tabbott]
2016-04-08 11:02:10 -07:00
Tomasz Kolek
44ed9da7f0
Add pingdom integration.
2016-04-08 10:36:29 -07:00
Varshit
4e1060076d
Purge 'from typing import *' from zerver/.
...
This is a partial implementation of #636 .
2016-04-07 14:07:07 -07:00
Eklavya Sharma
5f03c1444e
Remove duplicate module zerver/views/webhooks.py.
...
Also move type annotations from zerver/views/webhooks.py to
appropriate files in zerver/views/webhooks.py.
2016-04-07 12:37:22 +05:30
Tim Abbott
75d134a9b2
Import tornado.autoreload explicitly.
...
Fixes #623 .
2016-04-03 16:52:23 -07:00
Ashish
909b0635c8
Add management command to test sending email.
...
Fixes : #622 .
[With cleanups/doc tweaks by tabbott]
2016-04-03 16:50:16 -07:00
Varshit
e0ef1a991e
Rewrite sanitize_name to better preserve filenames.
...
The previous version of sanitize_name dropped all unicode characters
and mangled filenames with multiple `.`s in the extension, leading to
confusing URLs for files uploaded to Zulip.
Fixes #321 .
[tweaked significantly by tabbott]
2016-04-03 16:26:12 -07:00
Tim Abbott
4a50336476
Add type: Any for tornado.ioloop.add_timeout return value.
2016-04-03 15:40:24 -07:00
Tim Abbott
b6dd6413d0
Add type: ignore for tornado_ioloop_logging Tornado versioning code.
2016-04-03 15:40:24 -07:00
Tim Abbott
53ab18eea0
Add type: ignore for chain.from_iterable.
2016-04-03 15:40:24 -07:00
Tim Abbott
9abd332c07
Add type: ignore for mock.Mock() monkey-patching.
2016-04-03 15:40:24 -07:00
Tim Abbott
0d40473818
Add type: ignore for empty list mypy bug.
2016-04-03 15:40:24 -07:00
Tim Abbott
3a2d5266d8
Add type: ignore for mypy super() bug.
2016-04-03 15:40:24 -07:00
Tim Abbott
e3ec3e2526
Add type: ignore for test_helpers monkey-patching.
2016-04-03 15:40:24 -07:00
Tim Abbott
6c999927ac
Add type: ignore for csrf_exempt decorator.
2016-04-03 15:40:23 -07:00
Tim Abbott
b7dcf2181f
Add PEP-484 type annotations to management commands.
2016-04-03 15:40:23 -07:00
Tim Abbott
32f8f85f8b
Add PEP-484 type annotations to zerver/*.py.
2016-04-03 15:40:23 -07:00
Tim Abbott
ee8be22160
Add PEP-484 type annotations to zerver/worker/.
2016-04-03 15:40:23 -07:00
Tim Abbott
ec7bb0b011
Add PEP-484 type annotations to zerver/views/.
2016-04-03 15:40:23 -07:00
Tim Abbott
2059f650ab
Add PEP-484 type annotations to zerver/lib/.
2016-04-03 15:40:23 -07:00
Tim Abbott
d8f7d89fb4
Add PEP-484 type annotations to zerver/models.py.
...
Done pair-programming with Guido.
2016-04-03 15:40:06 -07:00
Tim Abbott
b99313545e
Add PEP-484 type annotations to global dictionaties.
2016-04-03 15:40:06 -07:00