Tim Abbott
9c56027627
lint: Add CSS lint rule for whitespace after {.
2016-04-20 11:50:01 -07:00
Tim Abbott
a46b5d7bbe
Add lint check for missing whitespace after =.
2016-04-20 11:37:03 -07:00
Tim Abbott
a72385246e
Fix missing whitespace after '=' in python/js code.
2016-04-20 11:36:14 -07:00
David Payne
ece96ef3fe
Jira's "issue created" message should @-notify the assignee.
2016-04-20 10:54:30 -07:00
Tomasz Kolek
82f1cdb085
Add send_webhook_fixture_message command.
...
This tool simplifies the process of producing nice screenshots for
documenting webhook integrations.
Fixes #658 .
2016-04-20 10:45:27 -07:00
Eklavya Sharma
c7a93cba22
Add tests for checking image validity in SetAvatarTest.
2016-04-20 12:27:23 +05:30
Eklavya Sharma
af7c3de5f5
Add SetAvatarTest to test_upload.py.
...
Test multiple file uploads for /json/set_avatar.
Test no file upload for /json/set_avatar.
Add test images for SetAvatarTest.
2016-04-20 12:23:22 +05:30
Eklavya Sharma
126273b1e7
Add a test for local file uploads.
2016-04-20 12:00:13 +05:30
Eklavya Sharma
4e18d856e3
Prevent 500 error when user uploads invalid avatar.
...
When uploaded avatar image is not a valid image file, PIL raises
IOError. Catch the IOError raised by PIL and raise JsonableError.
This will return a response with status code 400.
2016-04-20 12:00:13 +05:30
Eklavya Sharma
2d60a1d0f3
Move upload-related tests to test_upload.py.
...
Move S3Test, FileUploadTest and SanitizeNameTests from
test_external.py to test_upload.py.
2016-04-19 16:48:30 -07:00
Eklavya Sharma
c75c5fb3e1
Use a different uploads directory when running tests.
2016-04-19 16:48:30 -07:00
Tim Abbott
1b988de30a
Integration guide: clean up description of plugin integrations.
2016-04-19 16:21:33 -07:00
Tim Abbott
92f9a789b8
integration guide: Improve introduction.
2016-04-19 16:21:33 -07:00
Tim Abbott
0669262ccb
/integrations: Document how to contribute integrations.
2016-04-19 16:21:33 -07:00
Vishnu Ks
3179434f93
Move keep_pointer_in_view to pointer.js.
2016-04-19 15:23:45 -07:00
Vishnu Ks
b655e090a6
check_all: Move viewport to modules list.
...
It was previously incorrectly listed as a global variable.
2016-04-19 15:23:24 -07:00
Tim Abbott
a2b59b8b51
lint: Check whitespace rules for txt files.
2016-04-14 14:36:29 -07:00
Tim Abbott
78febc3abb
Fix missing newlines at end of .txt files.
2016-04-14 14:36:29 -07:00
Tim Abbott
39950b8f4f
lint: Check whitespace rules in markdown files too.
2016-04-14 14:30:29 -07:00
Tim Abbott
1a162ecb97
Fix tab-based whitespace in stress-test README file.
2016-04-14 14:30:29 -07:00
Tim Abbott
2b76f6223e
Make 'no newline at end of file' lint error more actionable.
...
There's a handy sed command to fix this, so we might as well document
it.
2016-04-14 10:55:06 -07:00
Tim Abbott
e71d8bb4b6
lint-all: Require newlines at end of JSON files.
2016-04-14 10:49:12 -07:00
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
Sumana Harihareswara
4ce4f88a03
Fix formatting in directory-structure.rst.
2016-04-13 15:44:10 -07:00
Tim Abbott
74abd47684
Fix EMAIL_GATEWAY_BOT not being set by default in production.
...
Previously the DEFAULTS value of None for EMAIL_GATEWAY_BOT was
overriding the initialization code.
2016-04-13 13:19:02 -07:00
Tim Abbott
ae48f6394b
migrations: Disable prompting about content-type deletion.
...
The main function of prompting inside `manage.py migrate` is to ask
the user if they want to delete stale content-types, which is
unimportant and likely scary, so we disable doing so.
2016-04-13 13:19:02 -07:00
Tim Abbott
d0f2c46f25
generate_test_credentials: Use the email variable properly.
...
This makes it a bit easier to change the email in the test
credentials.
2016-04-13 13:19:02 -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
81143a8c98
02-narrow: Use Denmark as the test second stream.
...
It's less easily confused with "Verona", and prevents the next commit
from breaking the tests (since Iago will lose his subscription to
"Venice").
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
98d5f64f36
webpack: Use the correct port in Casper tests.
...
Previously we used 9994 unconditionally, whereas we should be using
9984 or 9994 depending whether it's being run manually or via the
Casper tests.
2016-04-13 13:18:38 -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
2e32a7f05d
Move by-hand proxy setup section closer to the actual instructions.
2016-04-13 09:06:20 -07:00
Vishnu Ks
859a4eeaf4
Add support for using and configuring vagrant-proxyconf.
...
Users can now specify proxy settings for vagrant in a new
~/.zulip-vagrant-config configuration file.
2016-04-13 09:06:03 -07:00
Vishnu Ks
35f70e9dac
Move 5 legacy global variables to pointer.js.
...
Move recenter_pointer_on_display, suppress_scroll_pointer_update,
fast_forward_pointer, furthest_read, and server_furthest_read to
a new pointer module in pointer.js.
2016-04-12 10:56:54 -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
86fb7103fa
Delete old route for json/change_enter_sends.
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
679b4e5807
Replace /json/change_enter_sends with REST style route.
2016-04-11 21:38:23 -07:00