Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
dachengx committed Aug 29, 2024
1 parent 67bd306 commit ba1d747
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,5 +235,10 @@ def _test_get_array_multi_run(self, max_worker=None):
rr_multi = self.context.get_array(self.run_ids, "records", max_worker=max_worker)
assert np.all(np.diff(rr_multi["run_id"].astype(np.int8)) >= 0)

# Test always False selection
self.context.get_array(
self.run_ids, "records", max_worker=max_worker, selection="(time>42)&(time<42)"
)

def tearDown(self):
shutil.rmtree(self.tempdir)

0 comments on commit ba1d747

Please sign in to comment.