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
94bdc3bc
Commit
94bdc3bc
authored
2 years ago
by
L. Bower
Browse files
Options
Downloads
Patches
Plain Diff
trying to get full-fat advisory running on server
parent
e35c2f70
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/integration/full/full_test_advisory.py
+9
-7
9 additions, 7 deletions
tests/integration/full/full_test_advisory.py
tests/integration/partial/integration_test_utils.py
+9
-0
9 additions, 0 deletions
tests/integration/partial/integration_test_utils.py
with
18 additions
and
7 deletions
tests/integration/full/full_test_advisory.py
+
9
−
7
View file @
94bdc3bc
...
...
@@ -54,14 +54,16 @@ class FullTestAdvisory(BaseAdvisoryTestSuite.AdvisoryTestSuite):
@staticmethod
def
run_dependent_pipelines
():
# IntegrationTestUtils.run_external_pipeline("Deposition",
# BaseAdvisoryTestSuite.AdvisoryTestSuite.TEST_START_DATE,
# IntegrationTestUtils.EMAIL_CRED_PATH)
# IntegrationTestUtils.run_external_pipeline("Environment",
# BaseAdvisoryTestSuite.AdvisoryTestSuite.TEST_START_DATE,
# IntegrationTestUtils.EMAIL_CRED_PATH)
IntegrationTestUtils
.
run_external_pipeline
(
"
Deposition
"
,
BaseAdvisoryTestSuite
.
AdvisoryTestSuite
.
TEST_START_DATE
,
IntegrationTestUtils
.
EMAIL_CRED_PATH
)
IntegrationTestUtils
.
run_external_pipeline
(
"
Environment
"
,
BaseAdvisoryTestSuite
.
AdvisoryTestSuite
.
TEST_START_DATE
,
IntegrationTestUtils
.
EMAIL_CRED_PATH
)
previous_day_string
:
str
=
IntegrationTestUtils
.
get_day_before_as_string
(
BaseAdvisoryTestSuite
.
AdvisoryTestSuite
.
TEST_START_DATE
)
IntegrationTestUtils
.
run_external_pipeline
(
"
Survey
"
,
"
20230125
"
,
previous_day_string
,
IntegrationTestUtils
.
EMAIL_CRED_PATH
)
pass
...
...
This diff is collapsed.
Click to expand it.
tests/integration/partial/integration_test_utils.py
+
9
−
0
View file @
94bdc3bc
...
...
@@ -149,6 +149,15 @@ class IntegrationTestUtils:
pass
@staticmethod
def
get_day_before_as_string
(
input_date_string
:
str
)
->
str
:
date_format
=
"
%Y%m%d
"
input_date
:
datetime
=
datetime
.
datetime
.
strptime
(
input_date_string
,
date_format
)
yesterday_date
=
input_date
-
datetime
.
timedelta
(
days
=
1
)
yesterday_string
=
yesterday_date
.
strftime
(
date_format
)
return
yesterday_string
@staticmethod
def
generate_run_date
(
run_date_type
:
str
,
custom_run_date
:
str
)
->
str
:
...
...
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