-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev: Optimizations / Dead code removal for comparison class (#725)
- Loading branch information
1 parent
47e6cee
commit e245d32
Showing
13 changed files
with
35 additions
and
65 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
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 |
---|---|---|
|
@@ -42,7 +42,7 @@ def test_update_user_when_agreement_is_false(self): | |
assert self.current_user.terms_agreement_at == self.updated_at | ||
|
||
self.current_user.refresh_from_db() | ||
self.current_user.email == before_refresh_business_email | ||
assert self.current_user.email == before_refresh_business_email | ||
|
||
@freeze_time("2022-01-01T00:00:00") | ||
def test_update_user_when_agreement_is_true(self): | ||
|
@@ -56,7 +56,7 @@ def test_update_user_when_agreement_is_true(self): | |
assert self.current_user.terms_agreement_at == self.updated_at | ||
|
||
self.current_user.refresh_from_db() | ||
self.current_user.email == before_refresh_business_email | ||
assert self.current_user.email == before_refresh_business_email | ||
|
||
@freeze_time("2022-01-01T00:00:00") | ||
def test_update_owner_and_user_when_email_is_not_empty(self): | ||
|
@@ -73,7 +73,7 @@ def test_update_owner_and_user_when_email_is_not_empty(self): | |
assert self.current_user.terms_agreement_at == self.updated_at | ||
|
||
self.current_user.refresh_from_db() | ||
self.current_user.email == "[email protected]" | ||
assert self.current_user.email == "[email protected]" | ||
|
||
def test_validation_error_when_terms_is_none(self): | ||
with pytest.raises(ValidationError): | ||
|
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
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