Sidhant Bhavnani
8c0c12c1d9
pep8: Fix E303 violations.
2016-12-02 15:34:11 -08:00
Tim Abbott
aab5ca620e
tests: Improve some close paren formatting.
2016-12-01 14:18:11 -08:00
AZtheAsian
f7582f0050
pep8: Fix E124 violations
2016-12-01 14:18:11 -08:00
Rafid Aslam
c5316b4002
lint: Fix E127 pep8 violations.
...
Fix pep8: E127 continuation line over-indented for visual indent
style issue.
2016-12-01 10:23:55 -08:00
Rafid Aslam
41bd88d5ed
pep8: Fix E301 pep8 violations.
...
Fix "E301: expected (1 or 2) blank line" pep8 violations.
2016-11-29 08:51:44 -08:00
Calvin Lee
7a3ef2b0eb
tests: Add assert_in_success_response in ZulipTestCase.
...
Clean up the instances of self.assertIn("string", result.content.decode("utf-8")),
and replace them with self.assert_in_response("string").
Fixes : #2313
2016-11-26 14:52:44 -08:00
Steve Howell
87bcbc9616
Add test_generate_204 for /api/v1/generate_204.
...
This endpoint is apparently needed by the desktop app.
2016-11-26 09:52:37 -08:00
reyha
9f8630fed8
tests: Access realms by string_id.
...
Replaces get_realm() function by get_realm_by_string_id() function
in zerver/tests.
Fixes #2226 .
2016-11-15 13:32:20 -08:00
Steve Howell
fad0a86554
Add HelpTest for help pages.
2016-11-14 15:47:35 -08:00
Rishi Gupta
c1713c9659
Prevent code from using email domain to determine realm when subdomains.
...
Also removes the intermediate step of going through Realm.domain in the
non-subdomains case. Part of a larger project to remove Realm.domain
entirely.
2016-11-11 15:26:51 -08:00
sinwar
4582a98c09
tests: Split out ZulipTestCase and WebhookTestCase to a separate file.
...
Fixes #1671 .
2016-11-10 19:29:43 -08:00
Umair Khan
f78752466c
Django 1.10: URLs in response contain just the path.
...
The response object of the Django test client only contains the
path of the url.
2016-11-09 15:26:07 -08:00
umkay
f4c621ffe3
admin: Enable admins to toggle supported auth methods via UI.
...
Add a table to the administration page that will allow realm admins to
activate and deactivate the supported authentication methods for that
realm.
2016-11-06 16:29:35 -08:00
Steve Howell
38f2789152
Remove page_params.email_dict.
2016-11-04 11:37:14 -07:00
Steve Howell
9b04ec7472
Send dicts for cross realm users to JS.
...
We now send dictionaries for cross-realm bots. This led to the
following changes:
* Create get_cross_realm_dicts() in actions.py.
* Rename the page_params field to cross_realm_bots.
* Fix some back end tests.
* Add cross_realm_dict to people.js.
* Call people.add for cross-realm bots (if they are not already part of the realm).
* Remove hack to add in feedback@zulip.com on the client side.
* Add people.is_cross_realm_email() and use it in compose.js.
* Remove util.string_in_list_case_insensitive().
2016-11-03 09:51:23 -07:00
Steve Howell
7883cecf28
Send user_id to the client in more places.
...
This commit touches:
realm_bot/add
realm_user/add
page_params.bot_list
page_params.people_list
2016-10-28 13:40:14 -07:00
Tomasz Kolek
4790316b57
Add user setting option to always send push notifications.
...
Add option in user's settings for getting mobile push notifications
even if a Zulip browser is online. Default is False.
Fixes : #1596 .
2016-10-25 10:52:29 -07:00
Rishi Gupta
b6da450b96
admin.js: Use RealmAlias instead of Realm to show the restricted domains.
...
Passes the allowed domains for a realm to the frontend, via
page_params.domains. Groundwork for allowing users to add and
remove domains via the admin setting page, rather than via the
realm_alias.py management command.
2016-10-25 10:07:20 -07:00
Brock Whittaker
fca61b2031
Add medium size avatars for use on the user's own settings page.
...
This adds a medium (500px) size avatar thumbnail, that can be
referenced as `{name}-medium.png`. It is intended to be used on the
user's own settings page, though we may come up with other use cases
for high-resolution avatars in the future.
This will automatically generate and upload the medium avatar images
when a new avatar original is uploaded, and contains a migration
(contributed by Kirill Kanakhin) to ensure all pre-existing avatar
images have a medium avatar.
Note that this implementation does not provide an endpoint for
fetching the medium-size avatar for another user.
[substantially modified by tabbott]
2016-10-25 09:42:14 -07:00
K.Kanakhin
16c3da6db5
tests: Add tests for SEND_MISSED_MESSAGE_EMAILS_AS_USER=False.
...
- Add tests for SEND_MISSED_MESSAGE_EMAILS_AS_USER is False (the
default!).
- Reorganized test case code by removing repeated parts of code,
improving code style and moving common parts to separate class
methods.
Fixes #1697 .
2016-10-21 08:47:24 -07:00
Steve Howell
44bbece5a6
Remove do_remove_subscription() calls in tests.py.
2016-10-20 22:05:19 -07:00
Steve Howell
bea8ba620b
Replace do_add_subscription() in tests/tests.py.
2016-10-20 22:05:19 -07:00
Tim Abbott
2bea0c46fe
HomeTest: Add a basic test for desktop_home.
2016-10-16 11:39:08 -07:00
Tim Abbott
3ee9e2c45f
tests: Add some basic i18n public URL tests.
2016-10-16 11:26:01 -07:00
Tim Abbott
122164fffb
DocPageTest: add test for /about/ page.
2016-10-16 11:19:27 -07:00
Umair Khan
36c6a5d758
Add support for changing user's name by admin.
...
Fixes : #1553
2016-10-11 16:36:48 -07:00
Umair Khan
a32cee4b10
Add test to show error msg for invalid subdomain.
2016-10-10 08:42:34 -07:00
Supriya
4959e8d10a
tests: Extract and use assert_max_length test helper.
...
This makes it much more explicit in which cases we're checking
equality or a maximum in our use of `assert_length`.
Fixes #1400 .
2016-09-25 15:44:58 -07:00
Steve Howell
a79a627166
tests: Add more cases to test_terms_of_service().
...
This gives us more test coverage on UserProfile.major_tos_version().
2016-09-24 16:56:34 -07:00
Steve Howell
feb94a90aa
tests: Add ModelTest class for miscellaneous model tests.
2016-09-19 18:25:02 -07:00
Steve Howell
068a783d88
tests: Test creating user with aliased realm.
2016-09-19 14:57:53 -07:00
Steve Howell
a58cad3093
tests: Extract test_alert_words.py
2016-09-18 22:08:53 -07:00
Steve Howell
ca18b631c5
tests: Add ZephyrTest.
2016-09-17 09:29:09 -07:00
Steve Howell
750720116f
tests: Add test_update_realm_api().
2016-09-17 08:31:23 -07:00
Steve Howell
c4dd3ba0d3
tests: Add test_illegal_name_changes().
2016-09-16 09:59:26 -07:00
Tim Abbott
29495b953a
Add test for GET /json/users/me/pointer.
2016-09-13 17:30:39 -07:00
Tim Abbott
4a2282a837
tests.py: Fix missing import needed for mypy.
2016-09-13 17:08:14 -07:00
Steve Howell
51c78571cc
tests: Add HomeTest.test_invites_by_admins_only().
2016-09-13 16:46:05 -07:00
Steve Howell
7cb8f6421d
tests: Add HomeTest.test_new_stream().
2016-09-13 16:46:05 -07:00
Steve Howell
eced842f4d
tests: Add HomeTest.test_notifications_stream().
2016-09-13 16:46:05 -07:00
Steve Howell
cad12b077f
tests: Extract HomeTest._get_page_params().
2016-09-13 16:46:05 -07:00
Steve Howell
1091b51bb4
tests: Add HomeTest.test_bad_pointer().
2016-09-13 16:46:05 -07:00
Steve Howell
7f771c64ae
tests: Add HomeTest.test_bad_narrow().
2016-09-13 16:46:05 -07:00
Steve Howell
2bf876d5bb
tests: Add HomeTest._sanity_check().
2016-09-13 16:46:05 -07:00
Steve Howell
dc2dde1509
tests: Add HomeTest.test_terms_of_service().
2016-09-13 16:46:05 -07:00
Steve Howell
fa4110b1d9
tests: Extract HomeTest._get_home_page().
2016-09-13 16:46:05 -07:00
Steve Howell
f5f7801302
tests: Extract test_presence.py
2016-09-13 14:51:36 -07:00
Steve Howell
329fa22f22
tests: Add test_mirror_presence().
2016-09-13 14:42:18 -07:00
Steve Howell
7f94c74bf8
tests: Add test_invalid_presence().
2016-09-13 14:36:47 -07:00
Tim Abbott
a7fe22f4ec
Add Zulip version number to page_params.
2016-09-08 15:29:24 -07:00