CleanCut / green

Green is a clean, colorful, fast python test runner.
MIT License
793 stars 75 forks source link

Asynchronous test run #171

Closed dennypenta closed 6 years ago

dennypenta commented 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:

    @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.

dennypenta commented 6 years ago

I'm so sorry. I just didn't read a docs. Just close it.