FAQ
| This is a
LIVE
service |
Changelog
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ews-coordinator
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Operate
Terraform modules
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gilligan Lab for Epidemiology and Modelling
Wheat rusts
ews-coordinator
Commits
730b17af
Commit
730b17af
authored
1 year ago
by
L. Bower
Browse files
Options
Downloads
Patches
Plain Diff
fixing depo half fat test
parent
9bf25b74
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/integration/partial/integration_test_utils.py
+9
-10
9 additions, 10 deletions
tests/integration/partial/integration_test_utils.py
with
9 additions
and
10 deletions
tests/integration/partial/integration_test_utils.py
+
9
−
10
View file @
730b17af
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment