I'm using the FastAPI TestClient as described here. Works fine except for creating a resource since I'm using a sequence for the ID columns:
ItemID = Column(
BigInteger,
Sequence("item_id_seq"),
index=True,
primary_key=True,
nullable=False,
)
I know sqlite does not support sequencer. So it is just ignored. But when creating an item I get a NULL constraint exception since the ID is never set.
Is there a workaround? Is there an alternative SQL database for such tests?