Skip to content

Commit

Permalink
bump unique name check in a level
Browse files Browse the repository at this point in the history
  • Loading branch information
cisaacstern committed Nov 18, 2023
1 parent 0257962 commit 16a821a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/unit/test_bake.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,11 @@ def test_gpcp_bake(
assert job_name.startswith(custom_job_name)
else:
assert job_name.startswith("gh-pforgetest-gpcp-from-gcs-")
if "dictobj" in recipes_version_ref:
assert job_name.endswith(
hashlib.sha256(recipe_name.encode()).hexdigest()[:5]
)

if "dictobj" in recipes_version_ref:
assert job_name.endswith(
hashlib.sha256(recipe_name.encode()).hexdigest()[:5]
)

# In pangeo-forge-recipes>=0.10.0, the actual zarr store is produced in a
# *subpath* of target_storage.rootpath, rather than in the
Expand Down

0 comments on commit 16a821a

Please sign in to comment.