From 90de849dec56f20b8dcc3fbe58b4c5dcc9c296d7 Mon Sep 17 00:00:00 2001 From: tarsil Date: Tue, 9 Apr 2024 16:35:26 +0100 Subject: [PATCH 1/2] Fix linting --- databasez/testclient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/databasez/testclient.py b/databasez/testclient.py index 597d9ae..a001ff6 100644 --- a/databasez/testclient.py +++ b/databasez/testclient.py @@ -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 From 510fbf4b44ea3ca115c4e853ed131941ed5a02b4 Mon Sep 17 00:00:00 2001 From: tarsil Date: Tue, 9 Apr 2024 17:02:05 +0100 Subject: [PATCH 2/2] Add httpx --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 0ed7b0a..b673d39 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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", ]