Skip to content

Commit

Permalink
move usefixtures for citext to class
Browse files Browse the repository at this point in the history
  • Loading branch information
KonstantAnxiety committed Oct 10, 2023
1 parent a80015d commit 7d3af1d
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def enabled_citext_extension(self, db: Db) -> None:
db.execute("CREATE EXTENSION IF NOT EXISTS CITEXT;")


@pytest.mark.usefixtures("enabled_citext_extension")
class TestPostgreSQLSyncConnectionExecutor(
PostgreSQLSyncAsyncConnectionExecutorCheckBase,
DefaultSyncConnectionExecutorTestSuite[ConnectionPostgreSQL],
Expand Down Expand Up @@ -90,15 +91,6 @@ def get_schemas_for_type_recognition(self) -> dict[str, Sequence[DefaultSyncConn
],
}

@pytest.mark.usefixtures("enabled_citext_extension")
def test_type_recognition(
self,
request,
db: Db,
sync_connection_executor: SyncConnExecutorBase,
) -> None:
super().test_type_recognition(request, db, sync_connection_executor)


class TestPostgreSQLAsyncConnectionExecutor(
PostgreSQLSyncAsyncConnectionExecutorCheckBase,
Expand Down

0 comments on commit 7d3af1d

Please sign in to comment.