From 82b5b8c7a842cb58a9b84c971515514bdd1efbb5 Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Sun, 14 Mar 2021 14:10:38 +0100 Subject: [PATCH] Fixed keyboard tests --- tests/test_keyboard.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tests/test_keyboard.py b/tests/test_keyboard.py index 34812c4..1a5f2f4 100644 --- a/tests/test_keyboard.py +++ b/tests/test_keyboard.py @@ -22,12 +22,20 @@ def test_pickup(): def test_wait(): conf = config.read_config(r'config.yaml') - sendkeys.send_wait('Sinusal', conf) + data.compile_regex(conf) + text = '2021/03/08 23:24:52 17931875 bb3 [INFO Client 1492] @From Sinusal: 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)' + message = data.Message.from_text(text) + sendkeys.send_to_format('wait', message, conf) def test_ty(): conf = config.read_config(r'config.yaml') - sendkeys.send_ty('Sinusal', conf) + data.compile_regex(conf) + text = '2021/03/08 23:24:52 17931875 bb3 [INFO Client 1492] @From Sinusal: 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)' + message = data.Message.from_text(text) + sendkeys.send_to_format('ty', message, conf) def test_sold():