Skip to content

Commit b1fd70d

Browse files
committed
test(adapters): fix ruff lint errors in integration tests
- Remove unused schema_before variable (F841) - Fix unsorted imports in test_llama_index.py (I001)
1 parent 2a3909c commit b1fd70d

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

tests/integration/adapters/test_langchain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def test_add_graph_documents_idempotent(graph, unique_tag):
119119
def test_schema_refreshes_after_add(graph, unique_tag):
120120
"""structured_schema is invalidated and re-fetched after add_graph_documents."""
121121
graph._schema = None # force refresh
122-
schema_before = graph.schema
122+
graph.schema # trigger initial fetch before mutation
123123

124124
node = Node(id=f"SchemaNode-{unique_tag}", type="LCSchemaTest")
125125
doc = GraphDocument(nodes=[node], relationships=[], source=Document(page_content="test"))

tests/integration/adapters/test_llama_index.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
import pytest
1414
from llama_index.core.graph_stores.types import EntityNode, Relation
15-
1615
from llama_index.graph_stores.coordinode import CoordinodePropertyGraphStore
1716

1817
ADDR = os.environ.get("COORDINODE_ADDR", "localhost:7080")

0 commit comments

Comments
 (0)