@@ -85,8 +85,7 @@ def test_integration_try_actions(action_and_inputs, prompt):
8585 for action in action_and_inputs :
8686 prompt .input .send_text (f'{ action } \n ' )
8787 test_app , store , db = _setup_frontend ()
88- with test_app .app_context ():
89- start_user_management (test_app , store , db , prompt .session )
88+ start_user_management (test_app , store , db , prompt .session )
9089
9190 # test will throw exception or stall if something is broken
9291 assert True , f'action sequence { action_and_inputs } caused error'
@@ -106,8 +105,7 @@ def test_add_role(prompt, capsys):
106105 for action in action_and_inputs :
107106 prompt .input .send_text (f'{ action } \n ' )
108107 test_app , store , db = _setup_frontend ()
109- with test_app .app_context ():
110- start_user_management (test_app , store , db , prompt .session )
108+ start_user_management (test_app , store , db , prompt .session )
111109
112110 captured = capsys .readouterr ()
113111 assert 'test_user (guest)' in captured .out
@@ -119,7 +117,7 @@ def test_password_is_hashed(prompt):
119117 for action in action_and_inputs :
120118 prompt .input .send_text (f'{ action } \n ' )
121119 test_app , store , db = _setup_frontend ()
120+ start_user_management (test_app , store , db , prompt .session )
122121 with test_app .app_context ():
123- start_user_management (test_app , store , db , prompt .session )
124122 user = store .find_user (email = 'test_user' )
125123 assert user .password != 'mock_password'
0 commit comments