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 ...@@ -10,6 +10,9 @@ from zipfile import ZipFile
from HtmlTestRunner import HTMLTestRunner from HtmlTestRunner import HTMLTestRunner
from Processor import Processor
from ProcessorDeposition import ProcessorDeposition
class IntegrationTestUtils: class IntegrationTestUtils:
...@@ -180,9 +183,7 @@ class IntegrationTestUtils: ...@@ -180,9 +183,7 @@ class IntegrationTestUtils:
# need EMAIL_CRED in the environment before we import Processor # need EMAIL_CRED in the environment before we import Processor
os.environ["EMAIL_CRED"] = IntegrationTestUtils.EMAIL_CRED_PATH os.environ["EMAIL_CRED"] = IntegrationTestUtils.EMAIL_CRED_PATH
import Processor processor = ProcessorDeposition()
reload(Processor)
from Processor import run_Process, set_log_level
args_dict: dict = {} args_dict: dict = {}
...@@ -199,10 +200,10 @@ class IntegrationTestUtils: ...@@ -199,10 +200,10 @@ class IntegrationTestUtils:
args_dict[key] = value args_dict[key] = value
log_level = args_dict['log_level'] log_level = args_dict['log_level']
set_log_level(log_level) processor.set_log_level(log_level)
try: try:
run_Process(args_dict) processor.run_Process(args_dict)
except SystemExit: except SystemExit:
# we will eventually want to throw these to the calling class to be dealt with # we will eventually want to throw these to the calling class to be dealt with
pass pass
...@@ -216,9 +217,7 @@ class IntegrationTestUtils: ...@@ -216,9 +217,7 @@ class IntegrationTestUtils:
# need EMAIL_CRED in the environment before we import Processor # need EMAIL_CRED in the environment before we import Processor
os.environ["EMAIL_CRED"] = email_cred_path os.environ["EMAIL_CRED"] = email_cred_path
import Processor processor = Processor()
reload(Processor) # reload the class to reset all variables
from Processor import run_Process, set_log_level
args_dict: dict = {} args_dict: dict = {}
...@@ -235,10 +234,10 @@ class IntegrationTestUtils: ...@@ -235,10 +234,10 @@ class IntegrationTestUtils:
args_dict[key] = value args_dict[key] = value
log_level = args_dict['log_level'] log_level = args_dict['log_level']
set_log_level(log_level) processor.set_log_level(log_level)
try: try:
run_Process(args_dict) processor.run_Process(args_dict)
except SystemExit: except SystemExit:
# we will eventually want to throw these to the calling class to be dealt with # we will eventually want to throw these to the calling class to be dealt with
pass 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