diff --git a/tests/integration/dbapi/async/V2/conftest.py b/tests/integration/dbapi/async/V2/conftest.py index 17fd3c8e850..6ce7d1128f9 100644 --- a/tests/integration/dbapi/async/V2/conftest.py +++ b/tests/integration/dbapi/async/V2/conftest.py @@ -141,7 +141,7 @@ async def service_account_no_user( s_id = (await cursor.fetchone())[0] # Wrap in secret to avoid leaking the key in the logs yield s_id, Secret(key) - await cursor.execute(f"DROP SERVICE ACCOUNT {sa_account_name}") + await cursor.execute(f'DROP SERVICE ACCOUNT "{sa_account_name}"') @fixture diff --git a/tests/integration/dbapi/sync/V2/conftest.py b/tests/integration/dbapi/sync/V2/conftest.py index 87a8961c49f..84e8d654f08 100644 --- a/tests/integration/dbapi/sync/V2/conftest.py +++ b/tests/integration/dbapi/sync/V2/conftest.py @@ -141,7 +141,7 @@ def service_account_no_user( s_id = cursor.fetchone()[0] # Wrap in secret to avoid leaking the key in the logs yield s_id, Secret(key) - cursor.execute(f"DROP SERVICE ACCOUNT {sa_account_name}") + cursor.execute(f'DROP SERVICE ACCOUNT "{sa_account_name}"') @fixture