Skip to content

Commit

Permalink
Add env vars for unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kesmit13 committed Aug 21, 2024
1 parent 306603a commit 315727d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions singlestoredb/tests/test_fusion.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ def tearDownClass(cls):
def setUp(self):
self.enabled = os.environ.get('SINGLESTOREDB_FUSION_ENABLED')
os.environ['SINGLESTOREDB_FUSION_ENABLED'] = '1'
self.hidden_enabled = os.environ.get('SINGLESTOREDB_FUSION_ENABLE_HIDDEN')
os.environ['SINGLESTOREDB_FUSION_ENABLE_HIDDEN'] = '1'
self.conn = s2.connect(database=type(self).dbname, local_infile=True)
self.cur = self.conn.cursor()

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

if self.hidden_enabled:
os.environ['SINGLESTOREDB_FUSION_ENABLE_HIDDEN'] = self.hidden_enabled
else:
del os.environ['SINGLESTOREDB_FUSION_ENABLE_HIDDEN']

try:
if self.cur is not None:
self.cur.close()
Expand Down

0 comments on commit 315727d

Please sign in to comment.