From 36589fc68fd0f488c5bf3073c0d745b5949251e3 Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Tue, 16 Mar 2021 12:39:00 +0100 Subject: [PATCH] Some more keyboard tests --- tests/test_keyboard.py | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/tests/test_keyboard.py b/tests/test_keyboard.py index 395e1f2..4083ab5 100644 --- a/tests/test_keyboard.py +++ b/tests/test_keyboard.py @@ -8,7 +8,18 @@ def test_sendkeys(): def test_send_to(): - sendkeys.send_to('Sinusal', 'Your item level 21 23% Vaal Impurity of Lightning for 18 chaos is ready to pickup.') + config.read_config(r'config.yaml') + text = 'Hi, I would like to buy your level 21 23% Vaal Impurity of Lightning ' \ + 'listed for 18 chaos in Ritual (stash tab "$"; position: left 22, top 5)' + # sendkeys.send_to('Sinusal', 'Your item level 21 23% Vaal Impurity of Lightning for 18 chaos is ready to pickup.') + sendkeys.send_to('Sinusal', text) + + +def test_send_to2(): + config.read_config(r'config.yaml') + text = 'Hi, I would like to buy your Watcher\'s Eye ' \ + 'listed for 7 Exalt in Ritual (stash tab "$"; position: left 25, top 1)' + sendkeys.send_to('Sinusal', text) def test_pickup(): @@ -52,4 +63,4 @@ def test_ty_wo_trade(): data.compile_regex(conf) text = '2021/03/08 23:24:52 17931875 bb3 [INFO Client 1492] @From Sinusal: Hi, how are you doing? ' message = data.Message.from_text(text) - sendkeys.send_to_format('ty', message) \ No newline at end of file + sendkeys.send_to_format('ty', message)