Skip to content

Commit

Permalink
Merge pull request #21 from tarsil/tarsil-patch-1
Browse files Browse the repository at this point in the history
Update pyproject.toml
  • Loading branch information
tarsil committed Apr 10, 2024
2 parents 7bf90b2 + 510fbf4 commit 92ed886
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion databasez/testclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ async def drop_database(self, url: str) -> Any:
async with engine.begin() as conn:
# Disconnect all users from the database we are dropping.
version = conn.dialect.server_version_info
pid_column = "pid" if (version >= (9, 2)) else "procpid"
pid_column = "pid" if (version >= (9, 2)) else "procpid" # type: ignore
text = """
SELECT pg_terminate_backend(pg_stat_activity.{pid_column})
FROM pg_stat_activity
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ test = [
"pytest>=7.2.2,<8.0.0",
"pytest-cov>=4.0.0,<5.0.0",
"starlette>=0.26.1",
"httpx",
"requests>=2.28.2",
"ruff>=0.0.256,<1.0.0",
]
Expand Down

0 comments on commit 92ed886

Please sign in to comment.