test(backend): add comprehensive tests for OAuth and agent endpoints

- Added tests for OAuth provider admin and consent endpoints covering edge cases.
- Extended agent-related tests to handle incorrect project associations and lifecycle state transitions.
- Introduced tests for sprint status transitions and validation checks.
- Improved multiline formatting consistency across all test functions.
This commit is contained in:
2026-01-03 01:44:11 +01:00
parent acd18ff694
commit 664415111a
28 changed files with 1530 additions and 216 deletions

View File

@@ -10,7 +10,6 @@ These tests verify:
"""
class TestCeleryAppConfiguration:
"""Tests for the Celery application instance configuration."""

View File

@@ -134,9 +134,7 @@ class TestRecordLlmUsageTask:
]
for model, cost in models:
result = record_llm_usage(
agent_id, project_id, model, 1000, 500, cost
)
result = record_llm_usage(agent_id, project_id, model, 1000, 500, cost)
assert result["status"] == "pending"
def test_record_llm_usage_with_zero_tokens(self):