-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommandRunnerUnitTest.py
More file actions
28 lines (23 loc) · 887 Bytes
/
commandRunnerUnitTest.py
File metadata and controls
28 lines (23 loc) · 887 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import asyncio
import smythbotCommandRunner
import smythbot_outputs
async def debug_runner(test_command_string):
commander = smythbotCommandRunner.smythbot_command(test_command_string)
print ("executing command: " + test_command_string)
return await commander.poulate_command_index()
async def main():
#print("Hi")
testTable = smythbot_outputs.Table(["Name", "Animal Type", "Age"])
await testTable.add_cell_item("Darla")
await testTable.add_cell_item("Eagle")
await testTable.add_cell_item("5")
await testTable.add_cell_item("Alfalfa")
await testTable.add_cell_item("Eagle")
await testTable.add_cell_item("6")
await testTable.add_cell_item("Skippy")
await testTable.add_cell_item("Eagle")
await testTable.add_cell_item("7")
output = await testTable.output_as_simple_html()
print(output)
return
asyncio.run(main())