zulip/analytics/tests
Steve Howell 1b16693526 tests: Limit email-based logins.
We now have this API...

If you really just need to log in
and not do anything with the actual
user:

    self.login('hamlet')

If you're gonna use the user in the
rest of the test:

    hamlet = self.example_user('hamlet')
    self.login_user(hamlet)

If you are specifically testing
email/password logins (used only in 4 places):

    self.login_by_email(email, password)

And for failures uses this (used twice):

    self.assert_login_failure(email)
2020-03-11 17:10:22 -07:00
..
__init__.py Add a new statistics/analytics framework. 2016-10-04 17:18:54 -07:00
test_counts.py analytics: Fix missing unique constraint when subgroup is null. 2020-03-06 11:10:04 -08:00
test_fixtures.py analytics: Use python 3 syntax for typing. 2017-11-17 13:16:49 -08:00
test_views.py tests: Limit email-based logins. 2020-03-11 17:10:22 -07:00