mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-08 10:54:55 -04:00
Remove tests/utils.py from mypy's exclude list (#13159)
This commit is contained in:
parent
fa10468eb4
commit
9820665597
4 changed files with 3 additions and 4 deletions
|
@ -64,7 +64,7 @@ def setupdb():
|
|||
password=POSTGRES_PASSWORD,
|
||||
dbname=POSTGRES_DBNAME_FOR_INITIAL_CREATE,
|
||||
)
|
||||
db_conn.autocommit = True
|
||||
db_engine.attempt_to_set_autocommit(db_conn, autocommit=True)
|
||||
cur = db_conn.cursor()
|
||||
cur.execute("DROP DATABASE IF EXISTS %s;" % (POSTGRES_BASE_DB,))
|
||||
cur.execute(
|
||||
|
@ -94,7 +94,7 @@ def setupdb():
|
|||
password=POSTGRES_PASSWORD,
|
||||
dbname=POSTGRES_DBNAME_FOR_INITIAL_CREATE,
|
||||
)
|
||||
db_conn.autocommit = True
|
||||
db_engine.attempt_to_set_autocommit(db_conn, autocommit=True)
|
||||
cur = db_conn.cursor()
|
||||
cur.execute("DROP DATABASE IF EXISTS %s;" % (POSTGRES_BASE_DB,))
|
||||
cur.close()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue