diff --git a/tests/test_bing.py b/tests/test_bing.py index 38d488c..9ae1c6c 100644 --- a/tests/test_bing.py +++ b/tests/test_bing.py @@ -31,6 +31,7 @@ def generate_response() -> str: ) except: print("ERROR: Could not create a prompt!") + raise Exception("ERROR: Could not create a prompt!") return response.choices[0].message.content diff --git a/tests/test_freechatgpt.py b/tests/test_freechatgpt.py index 685c90a..a294142 100644 --- a/tests/test_freechatgpt.py +++ b/tests/test_freechatgpt.py @@ -15,6 +15,7 @@ def generate_response() -> str: ) except: print("ERROR: Could not create a prompt!") + raise Exception("ERROR: Could not create a prompt!") return response.choices[0].message.content