mirror of
https://github.com/weyne85/PentestGPT.git
synced 2025-10-29 16:58:59 +00:00
18 lines
432 B
Python
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()
|