Skip to content

Commit

Permalink
switch close and td
Browse files Browse the repository at this point in the history
  • Loading branch information
meksor committed Aug 12, 2024
1 parent ecf94b7 commit 96fe9b8
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 @@ -49,17 +49,17 @@ def rest_sqlite(self):
rest = RestTestBackend(backend)
rest.setup()
yield rest
rest.teardown()
rest.close()
rest.teardown()

@contextmanager
def rest_postgresql(self):
with self.postgresql() as backend:
rest = RestTestBackend(backend)
rest.setup()
yield rest
rest.teardown()
rest.close()
rest.teardown()

@contextmanager
def postgresql(self):
Expand All @@ -71,8 +71,8 @@ def postgresql(self):
)
pgsql.setup()
yield pgsql
pgsql.teardown()
pgsql.close()
pgsql.teardown()

@contextmanager
def sqlite(self):
Expand All @@ -81,8 +81,8 @@ def sqlite(self):
)
sqlite.setup()
yield sqlite
sqlite.teardown()
sqlite.close()
sqlite.teardown()


def get_backend_context(type, postgres_dsn):
Expand Down

0 comments on commit 96fe9b8

Please sign in to comment.