
self = <psycopg.Cursor [closed] [IDLE] (host=localhost user=mailer database=postgres) at 0x7f41565b8460>
query = 'CREATE DATABASE "bulkmailer_test_739e72fb"', params = {}

    def execute(
        self,
        query: Query,
        params: Params | None = None,
        *,
        prepare: bool | None = None,
        binary: bool | None = None,
    ) -> Self:
        """
        Execute a query or command to the database.
        """
        try:
            with self._conn.lock:
                self._conn.wait(
                    self._execute_gen(query, params, prepare=prepare, binary=binary)
                )
        except e._NO_TRACEBACK as ex:
>           raise ex.with_traceback(None)
E           sqlalchemy.exc.ProgrammingError: (psycopg.errors.InsufficientPrivilege) permission denied to create database
E           [SQL: CREATE DATABASE "bulkmailer_test_739e72fb"]
E           (Background on this error at: https://sqlalche.me/e/20/f405)

/usr/local/lib/python3.11/site-packages/psycopg/cursor.py:97: ProgrammingError
=========================== short test summary info ============================
ERROR tests/test_sse_dashboard.py::TestProgressEndpoint::test_progress_shape_draft_campaign
1 error in 0.32s
