44from flask_jwt_extended import create_access_token , create_refresh_token
55
66
7- @pytest .mark .usefixtures ("client_class" , "empty_test_db" )
7+ @pytest .mark .usefixtures ("client_class" )
88class TestUserAuthorization :
99 def test_user_auth (self , create_admin_user ):
1010 password = "strongestpasswordever"
@@ -63,7 +63,7 @@ def test_get_user(self, pm_header):
6363 assert is_valid (unauthorized_user_response , 401 )
6464
6565
66- @pytest .mark .usefixtures ("client_class" , "empty_test_db" )
66+ @pytest .mark .usefixtures ("client_class" )
6767class TestUserDeleteAuthorization :
6868 def test_admin_is_authorized (self , admin_header , create_user ):
6969 response = self .client .delete (
@@ -84,7 +84,7 @@ def test_pm_is_not_authorized(self, pm_header, create_user):
8484 assert response .status_code == 401
8585
8686
87- @pytest .mark .usefixtures ("client_class" , "empty_test_db" )
87+ @pytest .mark .usefixtures ("client_class" )
8888class TestUserPatchAuthorization :
8989 def test_auth_token_is_required (self ):
9090 response = self .client .patch ("api/user/5" , json = {})
@@ -127,7 +127,7 @@ def test_pm_is_authorized_to_update_themselves(
127127 assert response == 200
128128
129129
130- @pytest .mark .usefixtures ("client_class" , "empty_test_db" )
130+ @pytest .mark .usefixtures ("client_class" )
131131class TestUserLogic :
132132 # TODO: This doesn't belong in auth tests
133133 def test_password (self , header , create_user , faker ):
0 commit comments