Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
smodex
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
earth_observation_public
smodex
Commits
ee1872ca
Commit
ee1872ca
authored
1 year ago
by
Rufai Omowunmi Balogun
Browse files
Options
Downloads
Patches
Plain Diff
update test_downloader.py
parent
d48b7d55
No related branches found
Branches containing commit
Tags
v1.1.0b0
2 merge requests
!3
Dev-clean up
,
!1
update test for sm_climatology module
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_downloader.py
+6
-2
6 additions, 2 deletions
tests/test_downloader.py
with
6 additions
and
2 deletions
tests/test_downloader.py
+
6
−
2
View file @
ee1872ca
...
...
@@ -4,8 +4,8 @@ from unittest.mock import patch
import
cdsapi
import
pytest
from
smodex.sm_downloader
import
downloader
# type: ignore [attr-defined]
from
smodex.sm_downloader
import
era5_sm_downloader
# type: ignore [attr-defined]
from
smodex.sm_downloader
import
downloader
from
smodex.sm_downloader
import
era5_sm_downloader
@pytest.fixture
...
...
@@ -94,3 +94,7 @@ def test_downloader(tmp_path, monkeypatch, caplog):
assert
"
Initiating downloading of ERA5 Soil Moisture for 2023
"
in
caplog
.
text
assert
"
Downloaded ERA5 Soil Moisture for 2023
"
in
caplog
.
text
if
__name__
==
"
__main__
"
:
pytest
.
main
()
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