Revert "replace user PUT with POSTs"

This commit is contained in:
Leo Hemsted
2017-11-09 14:57:01 +00:00
committed by GitHub
parent 395a2fccbb
commit bfa6980913
7 changed files with 27 additions and 22 deletions

View File

@@ -200,7 +200,7 @@ def test_two_factor_should_activate_pending_user(
mocker,
api_user_pending,
mock_check_verify_code,
mock_activate_user,
mock_update_user,
):
mocker.patch('app.user_api_client.get_user', return_value=api_user_pending)
mocker.patch('app.service_api_client.get_services', return_value={'data': []})
@@ -211,5 +211,5 @@ def test_two_factor_should_activate_pending_user(
}
client.post(url_for('main.two_factor'), data={'sms_code': '12345'})
assert mock_activate_user.called
assert mock_update_user.called
assert api_user_pending.is_active