-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Trygve Aspenes
committed
Jan 7, 2025
1 parent
1fdeff4
commit eaf2820
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
"""Test arome arctic""" | ||
import os | ||
import logging | ||
import datetime | ||
import xarray as xr | ||
import numpy as np | ||
import pandas as pd | ||
from unittest.mock import patch, MagicMock | ||
from mapgen.modules.get_quicklook import get_quicklook | ||
|
||
def test_get_satpy_products_is_list(): | ||
from mapgen.modules.satellite_satpy_quicklook import _get_satpy_products | ||
assert isinstance(_get_satpy_products(None,{'layers': 'overview'}, 'overview'), list) | ||
assert isinstance(_get_satpy_products(None,{'layers': ['overview']}, 'overview'), list) | ||
assert isinstance(_get_satpy_products(None,{'LAYERS': 'overview'}, 'overview'), list) | ||
assert isinstance(_get_satpy_products(None,{'LAYERS': ['overview']}, 'overview'), list) | ||
|
||
assert isinstance(_get_satpy_products(None,{'layer': 'overview'}, 'overview'), list) | ||
assert isinstance(_get_satpy_products(None,{'layer': ['overview']}, 'overview'), list) | ||
assert isinstance(_get_satpy_products(None,{'LAYER': 'overview'}, 'overview'), list) | ||
assert isinstance(_get_satpy_products(None,{'LAYER': ['overview']}, 'overview'), list) | ||
|
||
assert isinstance(_get_satpy_products(None,{'NA': 'overview'}, 'overview'), list) | ||
|
||
assert isinstance(_get_satpy_products('overview',{'NA': 'overview'}, 'overview'), list) |