PentestGPT/tests/testLogin.py
2023-04-17 15:04:16 +08:00

18 lines
432 B
Python

import unittest
from http.cookies import SimpleCookie
from config.chatgpt_config import ChatGPTConfig
from utils.chatgpt import ChatGPT
class TestLogin(unittest.TestCase):
chatgpt_config = ChatGPTConfig()
chatgpt = ChatGPT(chatgpt_config)
text, conversation_id = chatgpt.send_new_message(
"I am a new tester for RESTful APIs."
)
assert text is not None
if __name__ == "__main__":
unittest.main()