Skip to content

Commit

Permalink
Fix async tests for python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
soldag committed Nov 7, 2023
1 parent b3e0d86 commit 2d0f8a7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions requirements/test.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
aiounittest
codecov
coverage
flake8
Expand Down
4 changes: 2 additions & 2 deletions test/test_async.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import unittest
import aiounittest

from ddt import ddt, data
from test.mycode import larger_than_two


@ddt
class TestAsync(unittest.IsolatedAsyncioTestCase):
class TestAsync(aiounittest.AsyncTestCase):
@data(3, 4, 12, 23)
async def test_larger_than_two(self, value):
self.assertTrue(larger_than_two(value))
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ deps =
pytest
pytest-cov
coverage
aiounittest
flake8
six>=1.4.0
PyYAML
Expand Down

0 comments on commit 2d0f8a7

Please sign in to comment.