forked from healthchecks/healthchecks
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't switch projects when viewing the "Account Settings" page
- Loading branch information
Showing
10 changed files
with
21 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
from django.conf import settings | ||
from django.utils.timezone import now | ||
from hc.test import BaseTestCase | ||
from hc.accounts.models import Member | ||
from hc.api.models import Check | ||
|
||
|
||
|
@@ -93,16 +92,6 @@ def test_it_skips_nag_if_none_down(self): | |
|
||
self.assertEqual(len(mail.outbox), 0) | ||
|
||
def test_it_switches_to_own_team(self): | ||
self.client.login(username="[email protected]", password="password") | ||
|
||
self.client.get("/accounts/profile/") | ||
|
||
# After visiting the profile page, team should be switched back | ||
# to user's default team. | ||
self.bobs_profile.refresh_from_db() | ||
self.assertEqual(self.bobs_profile.current_project, self.bobs_project) | ||
|
||
def test_it_sends_change_email_link(self): | ||
self.client.login(username="[email protected]", password="password") | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters