A light-weight, asynchronous ORM-like wrapper around asyncpg targeting Python 3.12+.
All records are returned as dictionaries, because you're just going to encode to JSON anyway.
Get into postgres:
sudo -u postgres psqlThen setup the test database and permissions (or modify the environment variables in pytest.ini instead):
CREATE DATABASE naboo_test;
CREATE USER naboo_test_user WITH PASSWORD 'naboo_test_password';
GRANT ALL PRIVILEGES ON DATABASE naboo_test TO naboo_test_user;
\c naboo_test;
ALTER SCHEMA public OWNER TO naboo_test_user;Then to run tests:
pytest