We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2757755 commit 0c330bcCopy full SHA for 0c330bc
1 file changed
tests/test_noninterleaving_notification_ids.py
@@ -1,4 +1,5 @@
1
# -*- coding: utf-8 -*-
2
+import os
3
from unittest import skip
4
5
from eventsourcing.persistence import ApplicationRecorder
@@ -54,10 +55,16 @@ class TestNonInterleavingPostgres(TestNonInterleaving):
54
55
56
def setUp(self) -> None:
57
super().setUp()
58
+ self.orig_postgres_dbname = os.environ.get("POSTGRES_DBNAME")
59
+ os.environ["POSTGRES_DBNAME"] = "eventsourcing_sqlalchemy"
60
self.drop_tables()
61
62
def tearDown(self) -> None:
63
64
+ if self.orig_postgres_dbname is not None:
65
+ os.environ["POSTGRES_DBNAME"] = self.orig_postgres_dbname
66
+ else:
67
+ del os.environ["POSTGRES_DBNAME"]
68
super().tearDown()
69
70
def drop_tables(self) -> None:
0 commit comments