Skip to content

Commit 4fff31a

Browse files
committed
test: comment description about test environment variable
Signed-off-by: Carl Flottmann <carl.flottmann@oracle.com>
1 parent b62a8a7 commit 4fff31a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/malware_analyzer/pypi/test_fake_email.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
from macaron.malware_analyzer.pypi_heuristics.heuristics import HeuristicResult
1313
from macaron.malware_analyzer.pypi_heuristics.metadata.fake_email import FakeEmailAnalyzer
1414

15+
# Note: throughout these unit tests we set email_validator.TEST_ENVIRONMENT to True. This sets a global
16+
# environment variable in email_validator that ensures that all calls to validate_email have
17+
# test_environment=True set. This allows test and **.test domains and disables DNS deliverability checks
18+
# (so disables check_deliverability=true). See https://github.com/JoshData/python-email-validator for more.
19+
1520

1621
@pytest.fixture(name="analyzer")
1722
def analyzer_() -> FakeEmailAnalyzer:

0 commit comments

Comments
 (0)