Skip to content

Commit

Permalink
Merge pull request #29 from pangeo-forge/use-test-feedstock
Browse files Browse the repository at this point in the history
Use test feedstock
  • Loading branch information
yuvipanda authored Sep 17, 2022
2 parents 7e58bb9 + ef69725 commit 36380ff
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions tests/test_bake.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
"recipe_id, expected_error, custom_job_name",
(
[None, None, None],
["gpcp", None, None],
["gpcp-from-gcs", None, None],
[
"invalid_recipe_id",
"ValueError: self.recipe_id='invalid_recipe_id' not in ['gpcp']",
"ValueError: self.recipe_id='invalid_recipe_id' not in ['gpcp-from-gcs']",
None,
],
[None, None, "special-name-for-job"],
Expand Down Expand Up @@ -60,9 +60,9 @@ def test_gpcp_bake(minio, recipe_id, expected_error, custom_job_name):
"pangeo-forge-runner",
"bake",
"--repo",
"https://github.com/pangeo-forge/gpcp-feedstock.git",
"https://github.com/pforgetest/gpcp-from-gcs-feedstock.git",
"--ref",
"2cde04745189665a1f5a05c9eae2a98578de8b7f",
"4f41e02512b2078c8bdb286368a1a9d878b5cec2",
"--json",
"-f",
f.name,
Expand All @@ -84,7 +84,7 @@ def test_gpcp_bake(minio, recipe_id, expected_error, custom_job_name):
if custom_job_name:
assert job_name == custom_job_name
else:
assert job_name.startswith("gpcp-")
assert job_name.startswith("gpcp-from-gcs-")

# Open the generated dataset with xarray!
gpcp = xr.open_dataset(
Expand Down
12 changes: 6 additions & 6 deletions tests/test_expand_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@

invocations = [
{
"repo": "https://github.com/pangeo-forge/gpcp-feedstock",
"ref": "2cde04745189665a1f5a05c9eae2a98578de8b7f",
"repo": "https://github.com/pforgetest/gpcp-from-gcs-feedstock.git",
"ref": "4f41e02512b2078c8bdb286368a1a9d878b5cec2",
"meta": {
"title": "Global Precipitation Climatology Project",
"description": "Global Precipitation Climatology Project (GPCP) Daily Version 1.3 gridded, merged ty satellite/gauge precipitation Climate data Record (CDR) from 1996 to present.\n",
"pangeo_forge_version": "0.9.0",
"pangeo_notebook_version": "2022.06.02",
"recipes": [{"id": "gpcp", "object": "recipe:recipe"}],
"recipes": [{"id": "gpcp-from-gcs", "object": "recipe:recipe"}],
"provenance": {
"providers": [
{
Expand All @@ -30,9 +30,9 @@
},
"maintainers": [
{
"name": "Ryan Abernathey",
"orcid": "0000-0001-5999-4917",
"github": "rabernat",
"name": "Charles Stern",
"orcid": "0000-0002-4078-0852",
"github": "cisaacstern",
}
],
"bakery": {"id": "pangeo-ldeo-nsf-earthcube"},
Expand Down

0 comments on commit 36380ff

Please sign in to comment.