Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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])
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:
if "snusbase_url" in api_keys:
snusbase_url = api_keys["snusbase_url"]
else:
snusbase_url = "http://api.snusbase.com/v2/search"
current_target.get_snusbase(
snusbase_url, api_keys["snusbase_token"], query
)