Skip to content
Snippets Groups Projects
Commit ee1872ca authored by Rufai Omowunmi Balogun's avatar Rufai Omowunmi Balogun
Browse files

update test_downloader.py

parent d48b7d55
No related branches found
Tags v1.1.0b0
2 merge requests!3Dev-clean up,!1update test for sm_climatology module
......@@ -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()
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