Skip to content

Commit a3fc560

Browse files
authored
test: remove skip from rpc with range test (#376)
1 parent 3dc51d4 commit a3fc560

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

tests/_async/test_filter_request_builder_integration.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import pytest
2-
31
from .client import rest_client
42

53

@@ -417,14 +415,16 @@ async def test_rpc_with_limit():
417415
assert res.data == [{"nicename": "Albania", "country_name": "ALBANIA", "iso": "AL"}]
418416

419417

420-
@pytest.mark.skip(reason="Need to re-implement range to use query parameters")
421418
async def test_rpc_with_range():
422419
res = (
423420
await rest_client()
424421
.rpc("list_stored_countries", {})
425422
.select("nicename, iso")
426-
.range(0, 1)
423+
.range(1, 2)
427424
.execute()
428425
)
429426

430-
assert res.data == [{"nicename": "Albania", "iso": "AL"}]
427+
assert res.data == [
428+
{"nicename": "Albania", "iso": "AL"},
429+
{"nicename": "Algeria", "iso": "DZ"},
430+
]

tests/_sync/test_filter_request_builder_integration.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import pytest
2-
31
from .client import rest_client
42

53

@@ -410,14 +408,16 @@ def test_rpc_with_limit():
410408
assert res.data == [{"nicename": "Albania", "country_name": "ALBANIA", "iso": "AL"}]
411409

412410

413-
@pytest.mark.skip(reason="Need to re-implement range to use query parameters")
414411
def test_rpc_with_range():
415412
res = (
416413
rest_client()
417414
.rpc("list_stored_countries", {})
418415
.select("nicename, iso")
419-
.range(0, 1)
416+
.range(1, 2)
420417
.execute()
421418
)
422419

423-
assert res.data == [{"nicename": "Albania", "iso": "AL"}]
420+
assert res.data == [
421+
{"nicename": "Albania", "iso": "AL"},
422+
{"nicename": "Algeria", "iso": "DZ"},
423+
]

0 commit comments

Comments
 (0)