Closed dennypenta closed 6 years ago
Looks like created event loop in my TestCase is ignored. WIth python -m unittest my tests is ok. Exactly I use AioHTTP and aiohttp.test_utils.unittest_run_loop decorator for my tests, for example:
TestCase
python -m unittest
@unittest_run_loop async def test_search_keyword(self): response = await self.client.get('/events?search=Super') data = await response.json() self.assertTrue(response.status == 200) self.assertTrue(len(data) == 1)
What are you thinking about that? I wanna fix it.
I'm so sorry. I just didn't read a docs. Just close it.
Looks like created event loop in my
TestCase
is ignored. WIthpython -m unittest
my tests is ok. Exactly I use AioHTTP and aiohttp.test_utils.unittest_run_loop decorator for my tests, for example:What are you thinking about that? I wanna fix it.