Skip to content

Commit

Permalink
rev reset after
Browse files Browse the repository at this point in the history
  • Loading branch information
meksor committed Aug 12, 2024
1 parent a6396ed commit 2126e53
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion ixmp4/data/backend/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ def _drop_all(self):

def reset(self):
self.session.rollback()
self.engine.dispose()
self._drop_all()
self._create_all()

Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ def platform_td_big(request):
bctx = get_backend_context(type, postgres_dsn)

with bctx as backend:
backend.reset()
platform = Platform(_backend=backend)
big.load_dataset(platform)
yield platform
backend.reset()


db_platform_big = pytest.fixture(
Expand Down

0 comments on commit 2126e53

Please sign in to comment.