Skip to content

Commit

Permalink
Only assume 1 history in the 2nd batch
Browse files Browse the repository at this point in the history
Co-authored-by: Nicola Soranzo <[email protected]>
  • Loading branch information
bernt-matthias and nsoranzo authored Jun 1, 2024
1 parent bc58a96 commit e37fa02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bioblend/_tests/TestGalaxyHistories.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def test_get_histories(self):
# Test limit and offset
first = self.gi.histories.get_histories(limit=1)
others = self.gi.histories.get_histories(offset=1)
assert len(others) > 0 # guess the test makes more sense with at least 2 histories
assert len(first) == 1
assert [h["id"] for h in all_histories] == [h["id"] for h in first] + [h["id"] for h in others]

out_of_limit = self.gi.histories.get_histories(offset=1000000)
Expand Down

0 comments on commit e37fa02

Please sign in to comment.