|
33 | 33 |
|
34 | 34 | class SlicingDiceTester(object):
|
35 | 35 | per_test_insertion = False
|
| 36 | + insert_sql_data = False |
36 | 37 |
|
37 | 38 | """Test orchestration class."""
|
38 | 39 |
|
@@ -67,7 +68,7 @@ def run_tests(self, query_type):
|
67 | 68 | num_tests = len(test_data)
|
68 | 69 |
|
69 | 70 | 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: |
71 | 72 | insertion_data = self.load_test_data(query_type, suffix="_insert")
|
72 | 73 | for insertion in insertion_data:
|
73 | 74 | self.client.insert(insertion)
|
@@ -395,7 +396,10 @@ def main():
|
395 | 396 | # by enviroment variable
|
396 | 397 | # http://panel.slicingdice.com/docs/#api-details-api-connection-api-keys-demo-key
|
397 | 398 | 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") |
399 | 403 |
|
400 | 404 | # MODE_TEST give us if you want to use endpoint Test or Prod
|
401 | 405 | sd_tester = SlicingDiceTester(
|
|
0 commit comments