test and lint

This commit is contained in:
2022-10-04 09:46:17 -05:00
parent f28c9fee83
commit b6d54d086e
4 changed files with 17 additions and 27 deletions

View File

@@ -8,7 +8,7 @@ async def test():
assert(response == "HOSTJOIN:")
await ws.send("HOST:")
response = await ws.recv()
assert(re.match(r"(\d|[a-f]){6}", response))
assert(re.match(r"CODE: [a-f\d]{6}", response))
asyncio.get_event_loop().run_until_complete(test())
print("All tests passed")