Skip to content

Commit

Permalink
fix broken psql tests
Browse files Browse the repository at this point in the history
  • Loading branch information
meksor committed Aug 12, 2024
1 parent 13950a7 commit ea15e7b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def pytest_addoption(parser):


@contextmanager
def yield_rest_sqlite_platform():
def yield_rest_sqlite_platform(*args):
sqlite = SqliteTestBackend(
PlatformInfo(name="sqlite-test", dsn="sqlite:///:memory:")
)
Expand Down Expand Up @@ -70,7 +70,7 @@ def yield_postgresql_platform(dsn):


@contextmanager
def yield_sqlite_platform():
def yield_sqlite_platform(*args):
sqlite = SqliteTestBackend(
PlatformInfo(name="sqlite-test", dsn="sqlite:///:memory:")
)
Expand All @@ -79,8 +79,8 @@ def yield_sqlite_platform():


def get_platform(gen):
def fixture():
with gen() as p:
def fixture(request):
with gen(request.config.options.postgres_dsn) as p:
yield p

return fixture
Expand Down

0 comments on commit ea15e7b

Please sign in to comment.