Some more keyboard tests

This commit is contained in:
Oliver Hartmann 2021-03-16 12:39:00 +01:00
parent ee8fcb66cc
commit 36589fc68f

View File

@ -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)
sendkeys.send_to_format('ty', message)