feat: expand platform APIs, sources, and test coverage
Some checks failed
CI/CD Pipeline / Run Tests (pull_request) Successful in 1m53s
CI/CD Pipeline / Telegram Notify Success (push) Has been cancelled
CI/CD Pipeline / Run Tests (push) Has been cancelled
CI/CD Pipeline / Code Quality Checks (push) Has been cancelled
CI/CD Pipeline / Code Quality Checks (pull_request) Failing after 2m54s
CI/CD Pipeline / Telegram Notify Success (pull_request) Has been skipped

This commit is contained in:
2026-03-17 12:56:48 +01:00
parent b505c67968
commit 3d298ce352
101 changed files with 8387 additions and 292 deletions

View File

@@ -51,6 +51,12 @@ class CustomExceptionHandlerTest(SimpleTestCase):
self.assertEqual(response.status_code, 400)
self.assertEqual(len(response.data["errors"]), 2)
def test_validation_error_scalar_message(self):
exc = ValidationError("plain error")
response = custom_exception_handler(exc, self._context())
self.assertEqual(response.status_code, 400)
self.assertEqual(response.data["errors"][0]["message"], "plain error")
def test_unhandled_exception(self):
response = custom_exception_handler(RuntimeError("boom"), self._context())
self.assertEqual(response.status_code, 500)