Skip to content

Commit

Permalink
Added back len assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
ppinchuk committed Oct 5, 2023
1 parent 6740d94 commit e643ca0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/pipeline/test_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ def test_fwp_pipeline():
with ResourceX(fp_out) as f:
assert len(f.time_index) == t_enhance * n_tsteps

status_file = glob.glob(os.path.join(td, ".gaps", '*_status.json'))[0]
status_fps = glob.glob(f'{td}/.gaps/*status*.json')
assert len(status_fps) == 1
status_file = status_fps[0]
with open(status_file, 'r') as fh:
status = json.load(fh)
assert all(s in status for s in ('forward-pass', 'data-collect'))
Expand Down

0 comments on commit e643ca0

Please sign in to comment.