FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit 730b17af authored by L. Bower's avatar L. Bower
Browse files

fixing depo half fat test

parent 9bf25b74
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,9 @@ from zipfile import ZipFile
from HtmlTestRunner import HTMLTestRunner
from Processor import Processor
from ProcessorDeposition import ProcessorDeposition
class IntegrationTestUtils:
......@@ -180,9 +183,7 @@ class IntegrationTestUtils:
# need EMAIL_CRED in the environment before we import Processor
os.environ["EMAIL_CRED"] = IntegrationTestUtils.EMAIL_CRED_PATH
import Processor
reload(Processor)
from Processor import run_Process, set_log_level
processor = ProcessorDeposition()
args_dict: dict = {}
......@@ -199,10 +200,10 @@ class IntegrationTestUtils:
args_dict[key] = value
log_level = args_dict['log_level']
set_log_level(log_level)
processor.set_log_level(log_level)
try:
run_Process(args_dict)
processor.run_Process(args_dict)
except SystemExit:
# we will eventually want to throw these to the calling class to be dealt with
pass
......@@ -216,9 +217,7 @@ class IntegrationTestUtils:
# need EMAIL_CRED in the environment before we import Processor
os.environ["EMAIL_CRED"] = email_cred_path
import Processor
reload(Processor) # reload the class to reset all variables
from Processor import run_Process, set_log_level
processor = Processor()
args_dict: dict = {}
......@@ -235,10 +234,10 @@ class IntegrationTestUtils:
args_dict[key] = value
log_level = args_dict['log_level']
set_log_level(log_level)
processor.set_log_level(log_level)
try:
run_Process(args_dict)
processor.run_Process(args_dict)
except SystemExit:
# we will eventually want to throw these to the calling class to be dealt with
pass
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment