feat: Add Method not Allowed handling for generate API and imporove error handling

Refs: OPS-12
This commit is contained in:
Alivecow 2025-03-03 15:36:03 +01:00
parent 0243091b76
commit edf145c8de
8 changed files with 53 additions and 28 deletions

View file

@ -1,3 +1,5 @@
from __future__ import annotations
import tempfile
from pathlib import Path

View file

@ -1,5 +1,7 @@
# do not remove this import. This is needed for
# pytest fixtures to work
from __future__ import annotations
import pytest # noqa: F401
from senju.haiku import Haiku

View file

@ -1,7 +1,10 @@
# I do not trust python and it's tests, so I'm testing them. May not be worth
# much, but at least it shows me a few things.
from __future__ import annotations
import os
# do not remove this import. This is needed for
# pytest fixtures to work
import pytest # noqa: F401