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():