Skip to content

Commit

Permalink
test: adapt adapter tests for query parameter model
Browse files Browse the repository at this point in the history
  • Loading branch information
lu-pl committed Nov 28, 2024
1 parent 5b1312c commit 7c29c00
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/tests_adapter/test_adapter_grouped_pagination.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import pytest

from pydantic import BaseModel, ConfigDict
from rdfproxy import Page, SPARQLModelAdapter
from rdfproxy import Page, QueryParameters, SPARQLModelAdapter


query = """
Expand Down Expand Up @@ -104,4 +104,5 @@ class AdapterParameter(NamedTuple):
["adapter", "query_parameters", "expected"], adapter_parameters
)
def test_basic_adapter_grouped_pagination(adapter, query_parameters, expected):
assert adapter.query(**query_parameters) == expected
parameters = QueryParameters(**query_parameters)
assert adapter.query(parameters) == expected

0 comments on commit 7c29c00

Please sign in to comment.