Skip to content

Commit

Permalink
tests: adapt tests for rdfproxy.SPARQLWrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
lu-pl committed Jan 29, 2025
1 parent 1f65fa5 commit 35b8c63
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions tests/tests_adapter/test_adapter_grouped_pagination.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
import pytest
from rdfproxy import (
ConfigDict,
HttpxStrategy,
Page,
QueryParameters,
SPARQLBinding,
SPARQLModelAdapter,
SPARQLWrapper,
)


Expand Down Expand Up @@ -57,33 +57,30 @@ class Parent(BaseModel):
children: list[Child]


@pytest.fixture(params=[HttpxStrategy])
@pytest.fixture(params=[SPARQLWrapper])
def adapter(request):
return SPARQLModelAdapter(
target="https://graphdb.r11.eu/repositories/RELEVEN",
query=query,
model=Parent,
sparql_strategy=request.param,
)


@pytest.fixture(params=[HttpxStrategy])
@pytest.fixture(params=[SPARQLWrapper])
def binding_adapter(request):
return SPARQLModelAdapter(
target="https://graphdb.r11.eu/repositories/RELEVEN",
query=binding_query,
model=BindingParent,
sparql_strategy=request.param,
)


@pytest.fixture(params=[HttpxStrategy])
@pytest.fixture(params=[SPARQLWrapper])
def ungrouped_adapter(request):
return SPARQLModelAdapter(
target="https://graphdb.r11.eu/repositories/RELEVEN",
query=query,
model=Child,
sparql_strategy=request.param,
)


Expand Down

0 comments on commit 35b8c63

Please sign in to comment.