Fixing tests

This commit is contained in:
László Károlyi 2019-03-02 02:25:56 +01:00
parent 3343039995
commit f11a91ccdc
Signed by: karolyi
GPG Key ID: 2DCAF25E55735BFE
2 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,4 @@
dnspython==1.16.0
entrypoints==0.3
flake8==3.7.7
isort==4.3.9

View File

@ -69,7 +69,7 @@ class EmailValidator(object):
self.domain_blacklist = self.domain_blacklist.union(
x.strip() for x in lines)
def __call__(self, value: str, use_blacklist: bool) -> bool:
def __call__(self, value: str, use_blacklist: bool = True) -> bool:
if not value or '@' not in value:
return False