Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
geosphere-api
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cspp_geo
geosphere
geosphere-api
Merge requests
!1
Add ht and temp ABI L2 products
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add ht and temp ABI L2 products
feature-l2-products
into
main
Overview
0
Commits
1
Pipelines
1
Changes
3
Merged
David Hoese
requested to merge
feature-l2-products
into
main
2 years ago
Overview
0
Commits
1
Pipelines
1
Changes
3
Expand
Add configuration for the two current L2 products HT (ht) and TEMP (temp).
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
7fb63398
1 commit,
2 years ago
3 files
+
141
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
geosphere_api/tests/test_product_times.py
+
20
−
0
Options
@@ -77,6 +77,26 @@ def test_product_times_params(client, geosphere_db, query_str, exp_code, exp_num
assert
datetime
.
strptime
(
last_dict
[
"
start_time
"
],
"
%Y-%m-%dT%H:%M:%S
"
)
==
exp_last_time
def
test_product_times_l2
(
client
,
geosphere_db
):
settings_func
=
settings_g16
app
.
dependency_overrides
[
get_settings
]
=
settings_func
app
.
dependency_overrides
[
get_db_params
]
=
lambda
:
DatabaseConnectionParameters
(
**
geosphere_db
.
info
.
get_parameters
())
_insert_fake_product_data
(
geosphere_db
,
settings_func
())
response
=
client
.
get
(
"
/times/g16/abi/radf/ht
"
)
assert
response
.
status_code
==
200
resp_json
=
response
.
json
()
assert
isinstance
(
resp_json
,
list
)
assert
len
(
resp_json
)
==
3
assert
isinstance
(
resp_json
[
0
],
dict
)
first_dict
=
resp_json
[
0
]
assert
datetime
.
strptime
(
first_dict
[
"
start_time
"
],
"
%Y-%m-%dT%H:%M:%S
"
)
==
datetime
(
2020
,
1
,
1
,
12
,
0
+
17
,
0
)
assert
first_dict
[
"
satellite_id
"
]
==
"
g16
"
last_dict
=
resp_json
[
-
1
]
assert
datetime
.
strptime
(
last_dict
[
"
start_time
"
],
"
%Y-%m-%dT%H:%M:%S
"
)
==
datetime
(
2020
,
1
,
1
,
12
,
20
+
17
,
0
)
def
test_product_times_alias_goeseast
(
client
,
geosphere_db
):
settings_func
=
settings_g16_g17_g18
app
.
dependency_overrides
[
get_settings
]
=
settings_func
Loading