Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
spyoungtech committed Aug 25, 2023
1 parent 8327cb0 commit be14d1c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions tests/_async/test_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@

ext_text = '''\
AHKDoSomething(ByRef command) {
global STRINGRESPONSEMESSAGE
arg := command[2]
return FormatResponse(STRINGRESPONSEMESSAGE, Format("test{}", arg))
return FormatResponse("ahk.message.StringResponseMessage", Format("test{}", arg))
}
'''

Expand All @@ -24,7 +23,7 @@

@async_extension.register
async def do_something(ahk, arg: str) -> str:
res = await ahk._transport.function_call('AHKDoSomething', [arg])
res = await ahk.function_call('AHKDoSomething', [arg])
return res


Expand Down
5 changes: 2 additions & 3 deletions tests/_sync/test_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@

ext_text = '''\
AHKDoSomething(ByRef command) {
global STRINGRESPONSEMESSAGE
arg := command[2]
return FormatResponse(STRINGRESPONSEMESSAGE, Format("test{}", arg))
return FormatResponse("ahk.message.StringResponseMessage", Format("test{}", arg))
}
'''

Expand All @@ -23,7 +22,7 @@

@async_extension.register
def do_something(ahk, arg: str) -> str:
res = ahk._transport.function_call('AHKDoSomething', [arg])
res = ahk.function_call('AHKDoSomething', [arg])
return res


Expand Down

0 comments on commit be14d1c

Please sign in to comment.