More unit tests

This commit is contained in:
klemek
2020-08-30 17:06:06 +02:00
parent 16a90afe7c
commit 2fbfd68cab
5 changed files with 216 additions and 54 deletions
+14
View File
@@ -0,0 +1,14 @@
from unittest import TestCase
import asyncio
class AsyncTestCase(TestCase):
def setUp(self):
self.loop = asyncio.new_event_loop()
asyncio.set_event_loop(None)
def tearDown(self):
self.loop.close()
def _await(self, fn):
return self.loop.run_until_complete(fn)