kin: auto-commit after pipeline
This commit is contained in:
parent
f805aff86b
commit
6c2da26b6c
6 changed files with 138 additions and 10 deletions
|
|
@ -734,3 +734,26 @@ def test_delete_attachment_returns_true(task_conn):
|
|||
def test_delete_attachment_not_found_returns_false(task_conn):
|
||||
"""KIN-090: delete_attachment возвращает False если запись не найдена."""
|
||||
assert models.delete_attachment(task_conn, 99999) is False
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# KIN-ARCH-008: test_command на уровне проекта
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
def test_schema_project_has_test_command_column(conn):
|
||||
"""KIN-ARCH-008: таблица projects содержит колонку test_command."""
|
||||
cols = {row["name"] for row in conn.execute("PRAGMA table_info(projects)")}
|
||||
assert "test_command" in cols
|
||||
|
||||
|
||||
def test_test_command_default_is_make_test(conn):
|
||||
"""KIN-ARCH-008: новый проект без test_command получает дефолт 'make test'."""
|
||||
p = models.create_project(conn, "prj_tc", "TC Project", "/tmp/tc")
|
||||
assert p["test_command"] == "make test"
|
||||
|
||||
|
||||
def test_test_command_can_be_set(conn):
|
||||
"""KIN-ARCH-008: update_project сохраняет кастомный test_command."""
|
||||
models.create_project(conn, "prj_tc2", "TC Project 2", "/tmp/tc2")
|
||||
updated = models.update_project(conn, "prj_tc2", test_command="pytest -v --tb=short")
|
||||
assert updated["test_command"] == "pytest -v --tb=short"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue