Skip to content

Commit 72df030

Browse files
author
Matthias Zimmermann
committed
feat: add query language tests, some reamde extensions
1 parent ba93bb8 commit 72df030

File tree

4 files changed

+17
-9
lines changed

4 files changed

+17
-9
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [1.0.0a6] - 2025-11-10
11+
12+
### Added Features
13+
- Switch to iterator pattern for query_entities
14+
15+
### Other Changes
16+
- Add README sections for querying
17+
- Renamings and refactorings for the iterator approach
18+
- Add query tests for select, paging and query language
19+
1020
## [1.0.0a5] - 2025-11-05
1121

1222
### Added Features

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "arkiv-sdk"
3-
version = "1.0.0a5"
3+
version = "1.0.0a6"
44
description = "Python SDK for Arkiv networks - Web3.py + Entities"
55
readme = "README.md"
66
requires-python = ">=3.10"

tests/test_query_language.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
import logging
44
import uuid
55

6-
import pytest
7-
86
from arkiv import Arkiv
97
from arkiv.types import ATTRIBUTES, KEY, CreateOp, Operations, QueryOptions
108

@@ -254,22 +252,22 @@ def test_query_language_comparison_range(self, arkiv_client_http: Arkiv) -> None
254252
)
255253

256254
# === IN Tests ===#
257-
@pytest.mark.xfail(reason="IN operator not yet supported by query parser")
255+
# @pytest.mark.xfail(reason="IN operator not yet supported by query parser")
258256
def test_query_language_in_type_list(self, arkiv_client_http: Arkiv) -> None:
259257
"""Test IN condition: type in ('A', 'B')."""
260258
execute_query_test(
261259
arkiv_client_http,
262260
"IN Type A or B",
263-
'type IN ("A", "B")',
261+
'type IN ("A" "B")',
264262
[1, 2, 3, 4, 5, 6, 7, 8],
265263
)
266264

267-
@pytest.mark.xfail(reason="IN operator not yet supported by query parser")
265+
# @pytest.mark.xfail(reason="IN operator not yet supported by query parser")
268266
def test_query_language_in_idx_list(self, arkiv_client_http: Arkiv) -> None:
269267
"""Test IN condition: idx in (1, 3, 4)."""
270268
execute_query_test(
271269
arkiv_client_http,
272-
"IN Idx 1, 3, 4",
273-
"idx IN (1, 3, 4)",
270+
"IN Idx 1, 3 or 4",
271+
"idx IN (1 3 4)",
274272
[1, 3, 4, 5, 7, 8, 9, 11, 12],
275273
)

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)