Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
class TestH8mail(unittest.TestCase):
"""Tests for `h8mail` package."""
def setUp(self):
"""Set up test fixtures, if any."""
def tearDown(self):
"""Tear down test fixtures, if any."""
def test_000_simple(self):
"""Test something."""
run.print_banner()
start_time = time.time()
target = classes.target("test@test.ca")
target.get_emailrepio()
target.get_hunterio_public()
if helpers.check_scylla_online():
target.get_scylla()
run.print_results([target])
run.print_summary(start_time, [target])
else:
api_keys = None
init_targets_len = len(targets)
query = "email"
skip_default_queries = False
if user_args.user_query is not None:
query = user_args.user_query
skip_default_queries = False
scylla_up = False
for counter, t in enumerate(targets):
c.info_news("Target factory started for {target}".format(target=t))
if user_args.debug:
current_target = target(t, debug=True)
else:
current_target = target(t)
if skip_default_queries:
current_target.get_hunterio_public()
current_target.get_emailrepio()
if not user_args.skip_defaults:
scylla_up = check_scylla_online()
if scylla_up:
current_target.get_scylla(query)
if api_keys is not None:
if "hibp" in api_keys and query == "email":
current_target.get_hibp3(api_keys["hibp"])
if "hunterio" in api_keys and query == "email":
init_targets_len = len(targets)
query = "email"
skip_default_queries = False
if user_args.user_query is not None:
query = user_args.user_query
skip_default_queries = False
scylla_up = False
for counter, t in enumerate(targets):
c.info_news("Target factory started for {target}".format(target=t))
if user_args.debug:
current_target = target(t, debug=True)
else:
current_target = target(t)
if skip_default_queries:
current_target.get_hunterio_public()
current_target.get_emailrepio()
if not user_args.skip_defaults:
scylla_up = check_scylla_online()
if scylla_up:
current_target.get_scylla(query)
if api_keys is not None:
if "hibp" in api_keys and query == "email":
current_target.get_hibp3(api_keys["hibp"])
if "hunterio" in api_keys and query == "email":
current_target.get_hunterio_private(api_keys["hunterio"])
if "snusbase_token" in api_keys: