-
Notifications
You must be signed in to change notification settings - Fork 562
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2546e35
commit 8a4d67d
Showing
2 changed files
with
7 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
from .base import ModuleTestBase | ||
|
||
|
||
class TestEmail_Addresses(ModuleTestBase): | ||
modules_overrides = ["email_addresses", "emailformat"] | ||
class TestEmais(ModuleTestBase): | ||
modules_overrides = ["emails", "emailformat"] | ||
|
||
async def setup_before_prep(self, module_test): | ||
module_test.httpx_mock.add_response( | ||
|
@@ -11,6 +11,6 @@ async def setup_before_prep(self, module_test): | |
) | ||
|
||
def check(self, module_test, events): | ||
sub_file = module_test.scan.home / "email_addresses.txt" | ||
email_addresses = set(open(sub_file).read().splitlines()) | ||
assert email_addresses == {"[email protected]"} | ||
sub_file = module_test.scan.home / "emails.txt" | ||
emails = set(open(sub_file).read().splitlines()) | ||
assert emails == {"[email protected]"} |