from programytest.client import TestClient client = TestClient() client_context = client.create_client_context("user1") response = client.process_question(client_context, "Hello") assert response == "Hi there!"
from programytest.client import TestClient client = TestClient() client_context = client.create_client_context("user2") response = client.process_question(client_context, "What's the weather like today?") assert "It's sunny today." in responseThis example creates another TestClient object and creates a client context for a user with ID `user2`. It then processes the user's input "What's the weather like today?" and expects the chatbot to respond with a message containing the text "It's sunny today.". Package library: Pyrogram.