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.OperationalError: (psycopg.errors.ObjectInUse) database "bulkmailer_test_6877f01b" is being accessed by other users E DETAIL: There is 1 other session using the database. E [SQL: DROP DATABASE IF EXISTS "bulkmailer_test_6877f01b"] E (Background on this error at: https://sqlalche.me/e/20/e3q8) /usr/local/lib/python3.11/site-packages/psycopg/cursor.py:97: OperationalError -- unsub_token = f["recipient"].unsub_token cid, crid, acc_email = f["campaign"].id, f["cr"].id, f["account"].email cr_email = f["cr"].email subj_text = f["subject"].subject out = _call(st, cid, crid) assert out == {"ok": True, "status": "sent", "message_id": "MSG-FAKE-123", "thread_id": "TH-FAKE-456"} # MIME captured by the fake transport — assert real headers/content assert len(ok_client.sent) == 1 mime = ok_client.sent[0] assert mime["From"] == acc_email # never spoofed assert mime["To"] == cr_email assert mime["Subject"] == subj_text lu = mime["List-Unsubscribe"] assert unsub_token in lu and lu.startswith(" assert "Sendy" in body # %FirstName% substituted E assert 'Sendy' in 'Content-Type: multipart/alternative; boundary="===============0936510994874601581=="\nMIME-Version: 1.0\nFrom: send-a...PHA+SGkgU2VuZHksIHRvdGFsICQxMjMuNDUuIEludm9pY2UgSU5WLVRFU1QtMDAwMS48L3A+\n\n--===============0936510994874601581==--\n' tests/test_send_one_task.py:366: AssertionError