Skip to content

Commit

Permalink
Update test parameter schema (WIP)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfisher87 committed Aug 6, 2024
1 parent bf1e882 commit ed47045
Showing 1 changed file with 21 additions and 7 deletions.
28 changes: 21 additions & 7 deletions tests/integration/test_onprem_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import random
import shutil
import unittest
from collections import TypedDict
from pathlib import Path

import earthaccess
Expand All @@ -14,27 +15,40 @@
logger = logging.getLogger(__name__)


daacs_list = [
class TestParam(TypedDict):
daac_name: str

# How many of the top collections we will test, e.g. top 3 collections
top_n_collections: int

# How many granules we will query
granules_count: int

# How many granules we will randomly select from the query
granules_sample_size: int

# The maximum allowed granule size; if larger we'll try to find another one
granules_max_size_mb: int


daacs_list: list[TestParam] = [
{
"short_name": "NSIDC",
"collections_count": 50,
"collections_sample_size": 3,
"top_n_collections": 3,
"granules_count": 100,
"granules_sample_size": 2,
"granules_max_size_mb": 100,
},
{
"short_name": "GES_DISC",
"collections_count": 100,
"collections_sample_size": 2,
"top_n_collections": 2,
"granules_count": 100,
"granules_sample_size": 2,
"granules_max_size_mb": 130,
},
{
"short_name": "LPDAAC",
"collections_count": 100,
"collections_sample_size": 2,
"top_n_collections": 2,
"granules_count": 100,
"granules_sample_size": 2,
"granules_max_size_mb": 100,
Expand Down

0 comments on commit ed47045

Please sign in to comment.