Skip to content

Commit ed5b08a

Browse files
committed
Fix smoke and integration tests
1 parent ed79fd9 commit ed5b08a

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

packages/graphrag/graphrag/cache/factory.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ class CacheFactory(Factory[PipelineCache]):
3030
# --- register built-in cache implementations ---
3131
def create_file_cache(**kwargs) -> PipelineCache:
3232
"""Create a file-based cache implementation."""
33-
# Create storage with base_dir in kwargs since FilePipelineStorage expects it there
3433
storage = FilePipelineStorage(**kwargs)
3534
return JsonPipelineCache(storage)
3635

tests/integration/cache/test_factory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def test_create_memory_cache():
3434
def test_create_file_cache():
3535
cache = CacheFactory().create(
3636
strategy=CacheType.file.value,
37-
init_args={"base_dir": "/temp/testcache"},
37+
init_args={"base_dir": "testcache"},
3838
)
3939
assert isinstance(cache, JsonPipelineCache)
4040

tests/smoke/test_fixtures.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,14 +204,13 @@ def __run_query(self, root: Path, query_config: dict[str, str]):
204204
"run",
205205
"poe",
206206
"query",
207+
query_config["query"],
207208
"--root",
208209
root.resolve().as_posix(),
209210
"--method",
210211
query_config["method"],
211212
"--community-level",
212213
str(query_config.get("community_level", 2)),
213-
"--query",
214-
query_config["query"],
215214
]
216215

217216
logger.info("running command ", " ".join(command))

0 commit comments

Comments
 (0)