feat: code quality audit + autoresearch integration + infra hardening (#150)

This commit is contained in:
Alexander Whitestone
2026-03-08 12:50:44 -04:00
committed by GitHub
parent fd0ede0d51
commit ae3bb1cc21
186 changed files with 5129 additions and 3289 deletions

View File

@@ -12,10 +12,13 @@ def test_tasks_page_returns_200(client):
def test_create_task(client):
"""POST /api/tasks returns 201 with task JSON."""
response = client.post("/api/tasks", json={
"title": "Fix the memory bug",
"priority": "high",
})
response = client.post(
"/api/tasks",
json={
"title": "Fix the memory bug",
"priority": "high",
},
)
assert response.status_code == 201
data = response.json()
assert data["title"] == "Fix the memory bug"
@@ -73,12 +76,15 @@ def test_create_task_missing_title_422(client):
def test_create_task_via_form(client):
"""POST /tasks/create via form creates and returns task card HTML."""
response = client.post("/tasks/create", data={
"title": "Form task",
"description": "Created via form",
"priority": "normal",
"assigned_to": "",
})
response = client.post(
"/tasks/create",
data={
"title": "Form task",
"description": "Created via form",
"priority": "normal",
"assigned_to": "",
},
)
assert response.status_code == 200
assert "Form task" in response.text