-
Notifications
You must be signed in to change notification settings - Fork 561
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
handle USERNAME <--> EMAIL_ADDRESS confusion
- Loading branch information
1 parent
c7510d5
commit 7c453b1
Showing
5 changed files
with
26 additions
and
6 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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
"id": "4363462346", | ||
"email": "[email protected]", | ||
"ip_address": "", | ||
"username": "", | ||
"username": "[email protected]", | ||
"password": "", | ||
"hashed_password": "$2a$12$pVmwJ7pXEr3mE.DmCCE4fOUDdeadbeefd2KuCy/tq1ZUFyEOH2bve", | ||
"name": "Bob Smith", | ||
|
@@ -46,8 +46,19 @@ async def setup_before_prep(self, module_test): | |
) | ||
|
||
def check(self, module_test, events): | ||
assert len(events) == 7 | ||
assert len(events) == 9 | ||
assert 1 == len([e for e in events if e.type == "EMAIL_ADDRESS" and e.data == "[email protected]"]) | ||
assert 1 == len( | ||
[ | ||
e | ||
for e in events | ||
if e.type == "EMAIL_ADDRESS" | ||
and e.data == "[email protected]" | ||
and e.scope_distance == 1 | ||
and "affiliate" in e.tags | ||
and e.source.data == "[email protected]" | ||
] | ||
) | ||
assert 1 == len([e for e in events if e.type == "EMAIL_ADDRESS" and e.data == "[email protected]"]) | ||
assert 1 == len( | ||
[ | ||
|