test and lint

This commit is contained in:
dane committed 2022-10-04 09:46:17 -05:00
1 parent f28c9fee83
commit b6d54d086e
4 files changed
+17 -27

No files matched your search

+1 -1
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")