fix: update backend tests to match actual API - all 41 tests passing

This commit is contained in:
2026-04-19 09:08:21 +03:00
parent 0c70e216e1
commit 145fa21805
9 changed files with 414 additions and 373 deletions

View File

@@ -47,7 +47,12 @@
"mcp__plugin_context-mode_context-mode__ctx_execute_file",
"Bash(git checkout *)",
"Bash(git stash *)",
"Bash(python -m pytest backend/tests/ -v --tb=short)"
"Bash(python -m pytest backend/tests/ -v --tb=short)",
"Bash(sed -i 's|\"/api/users|\"/users|g' backend/tests/test_users.py)",
"Bash(sed -i 's|\"/api/items|\"/items|g' backend/tests/test_items.py)",
"Bash(sed -i 's|\"/api/categories|\"/categories|g' backend/tests/test_categories.py)",
"Bash(sed -i 's|\"/api/operations|\"/operations|g' backend/tests/test_operations.py)",
"Bash(sed -i 's|\"/api/operations|\"/operations|g' backend/tests/test_offline_sync.py)"
]
}
}