Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
zopyx committed May 22, 2024
1 parent ac3e486 commit ca30cbb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion fastapi_auth/tests/test_user_management_sqlobject.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
import unittest
from ..user_management_sqlobject import UserManagement

import tempfile
import os


class TestUserManagement(unittest.TestCase):
def setUp(self):
self.um = UserManagement("sqlite/:memory:")
self.db_temp = "xx.db"
self.um = UserManagement(f"sqlite:///{self.db_temp}")

def tearDown(self):
os.unlink(self.db_temp)

def test_add_user(self):
self.um.add_user("admin", "password", "admin,user")
Expand Down

0 comments on commit ca30cbb

Please sign in to comment.