From 5a0026423b61915fd2f9544456b2634505a952b1 Mon Sep 17 00:00:00 2001 From: jahoti Date: Thu, 2 Dec 2021 00:00:00 +0000 Subject: Allow testing behavior to be customized Adds PYTEST, PYTHON, BROWSER_BIN, TEST_PORT, and TEST_PROFILE variables to configure. --- test/__main__.py | 2 +- test/profiles.py | 2 +- test/server.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/__main__.py b/test/__main__.py index c3437ea..09eebd8 100644 --- a/test/__main__.py +++ b/test/__main__.py @@ -32,7 +32,7 @@ import time import code from .server import do_an_internet -from .misc_constants import * +from .config import * from .profiles import firefox_safe_mode def fail(msg, error_code): diff --git a/test/profiles.py b/test/profiles.py index a833097..510711f 100755 --- a/test/profiles.py +++ b/test/profiles.py @@ -29,7 +29,7 @@ from selenium import webdriver from selenium.webdriver.firefox.options import Options import time -from .misc_constants import * +from .config import * def set_profile_proxy(profile, proxy_host, proxy_port): # proxy type 1 designates "manual" diff --git a/test/server.py b/test/server.py index 6013955..460be60 100755 --- a/test/server.py +++ b/test/server.py @@ -33,7 +33,7 @@ from urllib.parse import parse_qs from threading import Thread from .proxy_core import ProxyRequestHandler, ThreadingHTTPServer -from .misc_constants import * +from .config import * from .world_wide_library import catalog as internet class RequestHijacker(ProxyRequestHandler): -- cgit v1.2.3