Pipelinen parannuksia building blockeilla

This commit is contained in:
Jaakko Vanhala
2026-04-12 18:48:14 +03:00
parent c1a5f8aff5
commit b2ee8b9031
175 changed files with 13311 additions and 237 deletions

View File

@@ -0,0 +1,65 @@
{
"run_id": "tmpl_v1",
"model": "qwen2.5-coder:7b-instruct-q4_K_M",
"description": "Todo-sovellus FastAPI + SQLite, CRUD-endpointit ja testit",
"spec": {
"project_name": "todo-app",
"description": "A simple Todo application with CRUD endpoints using FastAPI and SQLite.",
"entities": [
{
"name": "Todo",
"table_name": "todos",
"fields": [
{
"name": "title",
"sa_type": "String(255)",
"py_type": "str",
"nullable": false,
"default": null
},
{
"name": "description",
"sa_type": "Text",
"py_type": "str | None",
"nullable": true,
"default": null
},
{
"name": "due_date",
"sa_type": "Date",
"py_type": "date | None",
"nullable": true,
"default": null
},
{
"name": "status",
"sa_type": "String(20)",
"py_type": "str",
"nullable": false,
"default": "pending"
}
]
}
],
"extra_imports": [
"from datetime import date"
]
},
"files": {
"models.py": 712,
"schemas.py": 293,
"main.py": 1711,
"test_main.py": 2439,
"pyproject.toml": 177,
"Dockerfile": 339
},
"valid": true,
"docker": {
"build": true,
"pytest": false,
"api": true,
"errors": [
"pytest exit 1:\nCreate):\n\n-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html\n=========================== short test summary info ============================\nFAILED test_main.py::test_create_todo - sqlalchemy.exc.OperationalError: (sql...\nFAILED test_main.py::test_list_todos - sqlalchemy.exc.OperationalError: (sqli...\nFAILED test_main.py::test_get_todo_by_id - sqlalchemy.exc.OperationalError: (...\nFAILED test_main.py::test_get_todo_not_found - sqlalchemy.exc.OperationalErro...\nFAILED test_main.py::test_update_todo - sqlalchemy.exc.OperationalError: (sql...\nFAILED test_main.py::test_delete_todo - sqlalchemy.exc.OperationalError: (sql...\n======================== 6 failed, 2 warnings in 2.54s =========================\n Network tmpl_v1_default Creating\n Network tmpl_v1_default Created\n\n"
]
}
}