Skip to content

Commit d33dbc0

Browse files
committed
Remove sql insertion for default and change api key
1 parent 5c70d1d commit d33dbc0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests_and_examples/run_query_tests.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333

3434
class SlicingDiceTester(object):
3535
per_test_insertion = False
36+
insert_sql_data = False
3637

3738
"""Test orchestration class."""
3839

@@ -67,7 +68,7 @@ def run_tests(self, query_type):
6768
num_tests = len(test_data)
6869

6970
self.per_test_insertion = "insert" in test_data[0]
70-
if not self.per_test_insertion:
71+
if not self.per_test_insertion and self.insert_sql_data:
7172
insertion_data = self.load_test_data(query_type, suffix="_insert")
7273
for insertion in insertion_data:
7374
self.client.insert(insertion)
@@ -395,7 +396,10 @@ def main():
395396
# by enviroment variable
396397
# http://panel.slicingdice.com/docs/#api-details-api-connection-api-keys-demo-key
397398
api_key = os.environ.get(
398-
"SD_API_KEY","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfX3NhbHQiOiJkZW1vMzU2N20iLCJwZXJtaXNzaW9uX2xldmVsIjozLCJwcm9qZWN0X2lkIjoyMzU2NywiY2xpZW50X2lkIjoxMH0.iv3Xf7GkhQynfus6QynGf285cWljD9KBucJxNtnJqjo")
399+
"SD_API_KEY", "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfX3NhbHQiOiI"
400+
"xNTIzMDY1ODQyNjU4IiwicGVybWlzc2lvbl9sZXZlbCI6MywicHJ"
401+
"vamVjdF9pZCI6MzA1MDgsImNsaWVudF9pZCI6MjAzfQ.R3oKwcA9"
402+
"XoQcW_QBxcvqUNJS44AqCKjoK2Hz5uBnxmU")
399403

400404
# MODE_TEST give us if you want to use endpoint Test or Prod
401405
sd_tester = SlicingDiceTester(

0 commit comments

Comments
 (0)