Skip to content

Commit

Permalink
updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreyaven committed Oct 11, 2023
1 parent fba1d55 commit 79187c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions tests/pystackql_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,12 @@ def test_08_execute(self):

debug_info = "\n".join(failure_messages)
print_test_result("Test execute method", False, debug_message=debug_info)
self.fail(debug_info)

except Exception as e:
debug_info = f"An error occurred: {str(e)}\n*********\nQuery: {google_query}\n*********\nResult: {result}"
print_test_result("Test execute method", False, debug_message=debug_info)
self.fail(debug_info)

@pystackql_test_setup
def test_09_executeQueriesAsync(self):
Expand Down
4 changes: 2 additions & 2 deletions tests/test_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,5 @@ def print_test_result(test_name, condition, debug_message=None, server_mode=Fals
print(colored(f"Debug Info: {debug_message}", 'red'))

# If the test failed, exit with a non-zero return code
if not condition:
sys.exit(1)
# if not condition:
# sys.exit(1)

0 comments on commit 79187c5

Please sign in to comment.