Skip to content

Commit

Permalink
add async db
Browse files Browse the repository at this point in the history
  • Loading branch information
MorvanZhou committed Nov 18, 2023
1 parent c1dd00c commit bff53f0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/test_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from . import utils


class AuthTest(unittest.TestCase):
class AuthTest(unittest.IsolatedAsyncioTestCase):
@classmethod
def setUpClass(cls):
utils.set_env(".env.test.local")
Expand All @@ -17,9 +17,12 @@ def setUpClass(cls):

@classmethod
def tearDownClass(cls) -> None:
database.drop_all()
utils.drop_env(".env.test.local")

async def asyncSetUp(self) -> None:
await database.drop_all()
await database.init()

def test_verify(self):
password = "123abc"
email = "[email protected]"
Expand Down

0 comments on commit bff53f0

Please sign in to comment.