Added sendkeys module.

This commit is contained in:
2021-03-14 13:20:22 +01:00
parent e817062f68
commit d67b574969
4 changed files with 63 additions and 1 deletions

25
tests/test_keyboard.py Normal file
View File

@@ -0,0 +1,25 @@
from src import sendkeys
from src import config
def test_sendkeys():
sendkeys.send_text('Hello World')
def test_send_to():
sendkeys.send_to('Sinusal', 'Hi, how are you?')
def test_pickup():
conf = config.read_config(r'config.yaml')
sendkeys.send_pickup('Sinusal', 'Watcher\'s Eye', 11, 'Exalts', conf)
def test_wait():
conf = config.read_config(r'config.yaml')
sendkeys.send_wait('Sinusal', conf)
def test_ty():
conf = config.read_config(r'config.yaml')
sendkeys.send_ty('Sinusal', conf)