Skip to content

Commit

Permalink
Add coverage for range
Browse files Browse the repository at this point in the history
  • Loading branch information
PProfizi committed Jan 10, 2025
1 parent 334f9e8 commit 4fe53d7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/test_scoping.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,18 @@ def test_set_get_ids_scoping(server_type):
assert np.allclose(scop.ids, ids)


def test_set_get_ids_scoping_range(server_type):
range_ids = range(1, 10)
scop = Scoping(
ids=range_ids,
server=server_type,
)
assert np.allclose(scop.ids, range_ids)
scop = Scoping(server=server_type)
scop.ids = range_ids
assert np.allclose(scop.ids, range_ids)


@pytest.mark.skipif(
not SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_2_0,
reason="Requires server version higher than 2.0",
Expand Down

0 comments on commit 4fe53d7

Please sign in to comment.