kin: auto-commit after pipeline
This commit is contained in:
parent
e7c65c22e5
commit
0e522e54a9
7 changed files with 363 additions and 65 deletions
|
|
@ -2197,8 +2197,11 @@ def test_create_project_with_test_command(client):
|
|||
assert row[0] == "npm test"
|
||||
|
||||
|
||||
def test_patch_project_test_command_empty_string_stores_empty(client):
|
||||
"""KIN-ARCH-008: PATCH с пустой строкой сохраняет пустую строку (не NULL, в отличие от deploy_command)."""
|
||||
def test_patch_project_test_command_empty_string_stores_null(client):
|
||||
"""KIN-101: PATCH с пустой строкой сохраняет NULL — включает режим авто-определения фреймворка.
|
||||
|
||||
Пустая строка — сентинел для сброса test_command (аналогично deploy_command и другим полям).
|
||||
"""
|
||||
client.patch("/api/projects/p1", json={"test_command": "pytest -v"})
|
||||
client.patch("/api/projects/p1", json={"test_command": ""})
|
||||
|
||||
|
|
@ -2206,7 +2209,7 @@ def test_patch_project_test_command_empty_string_stores_empty(client):
|
|||
conn = init_db(api_module.DB_PATH)
|
||||
row = conn.execute("SELECT test_command FROM projects WHERE id = 'p1'").fetchone()
|
||||
conn.close()
|
||||
assert row[0] == ""
|
||||
assert row[0] is None
|
||||
|
||||
|
||||
def test_get_projects_includes_test_command(client):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue