Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ppinchuk committed May 29, 2024
1 parent f2b8136 commit 14c794b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test_bespoke.py
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ def test_collect_bespoke():
collector.collect("cf_profile-2012")

with Resource(h5_file) as fout:
meta = fout.meta
meta = fout.meta.rename(columns=SupplyCurveField.map_from_legacy())
assert all(
meta[SupplyCurveField.GID].values
== sorted(meta[SupplyCurveField.GID].values)
Expand All @@ -737,8 +737,7 @@ def test_collect_bespoke():
for fp in source_fps:
with Resource(fp) as source:
src_meta = source.meta.rename(
SupplyCurveField.map_from_legacy(), axis=1
)
columns=SupplyCurveField.map_from_legacy())
assert all(
np.isin(
src_meta[SupplyCurveField.GID].values,
Expand Down

0 comments on commit 14c794b

Please sign in to comment.