Skip to content

Commit 315727d

Browse files
committed
Add env vars for unit tests
1 parent 306603a commit 315727d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

singlestoredb/tests/test_fusion.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ def tearDownClass(cls):
141141
def setUp(self):
142142
self.enabled = os.environ.get('SINGLESTOREDB_FUSION_ENABLED')
143143
os.environ['SINGLESTOREDB_FUSION_ENABLED'] = '1'
144+
self.hidden_enabled = os.environ.get('SINGLESTOREDB_FUSION_ENABLE_HIDDEN')
145+
os.environ['SINGLESTOREDB_FUSION_ENABLE_HIDDEN'] = '1'
144146
self.conn = s2.connect(database=type(self).dbname, local_infile=True)
145147
self.cur = self.conn.cursor()
146148

@@ -150,6 +152,11 @@ def tearDown(self):
150152
else:
151153
del os.environ['SINGLESTOREDB_FUSION_ENABLED']
152154

155+
if self.hidden_enabled:
156+
os.environ['SINGLESTOREDB_FUSION_ENABLE_HIDDEN'] = self.hidden_enabled
157+
else:
158+
del os.environ['SINGLESTOREDB_FUSION_ENABLE_HIDDEN']
159+
153160
try:
154161
if self.cur is not None:
155162
self.cur.close()

0 commit comments

Comments
 (0)