From 47089871b128ec59f2f571f3c90e332b8abd35ed Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Fri, 24 Oct 2025 17:45:16 -0700 Subject: [PATCH] Update test_bot.py --- modules/test_bot.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/modules/test_bot.py b/modules/test_bot.py index 790ae66..c819f88 100644 --- a/modules/test_bot.py +++ b/modules/test_bot.py @@ -301,6 +301,20 @@ class TestBot(unittest.TestCase): + def test_hamtest_answer_one(self): + from games.hamtest import hamtest + user_id = "testuser" + # Start a new ham test game (default level: technician) + initial = hamtest.newGame(user_id) + print("Initial question:", initial) + # Answer the first question with 'A' + answer_msg = hamtest.answer(user_id, "A") + print("Answer response:", answer_msg) + self.assertIsInstance(initial, str) + self.assertIsInstance(answer_msg, str) + + + ##### API Tests - Extended tests run only if CHECKALL is True #####