fixed test

This commit is contained in:
Swifty
2025-09-29 10:45:55 +02:00
parent 95d66a035c
commit b1364b1701

View File

@@ -102,15 +102,15 @@ def test_get_graph_blocks(
mock_block.id = "test-block"
mock_block.disabled = False
# Mock get_blocks in cache module where it's actually used
# Mock get_blocks where it's imported at the top of v1.py
mocker.patch(
"backend.server.routers.cache.get_blocks",
"backend.server.routers.v1.get_blocks",
return_value={"test-block": lambda: mock_block},
)
# Mock block costs where it's imported inside the function
mocker.patch(
"backend.data.credit.get_block_cost",
"backend.server.routers.v1.get_block_cost",
return_value=[{"cost": 10, "type": "credit"}],
)