| taxi_pro_selfreg_web = <taxi.pytest_plugins.service_client.AiohttpClientTestsControl object at 0x76237440a780>, expected_status = 200, expected_response = {}
|
|
|
| @pytest.mark.pgsql(
|
| 'pro_selfreg__pgaas',
|
| queries=[
|
| """
|
| INSERT INTO pro_selfreg.drafts
|
| (selfreg_id, phone_pd_id, passport_uid, locale, chosen_flow, city, created_at)
|
| VALUES
|
| ('selfreg_id_1', 'phone_pd_id', 'test_passport_uid',
|
| 'nowhereland', 'taxi_driver', 'Москва', '2025-01-01T12:00:00+000');
|
| """
|
| ],
|
| )
|
| @pytest.mark.client_experiments3(
|
| file_with_default_response='experiments3_defaults.json',
|
| )
|
| @pytest.mark.parametrize(
|
| ('expected_status', 'expected_response'),
|
| (
|
| pytest.param(
|
| 200,
|
| {},
|
| id='200',
|
| ),
|
| ),
|
| )
|
| async def test_pro_v1_pro_selfreg_v1_steps_dkvu_get(
|
| taxi_pro_selfreg_web,
|
| expected_status,
|
| expected_response,
|
| ):
|
| response = await taxi_pro_selfreg_web.get(
|
| '/pro/v1/pro-selfreg/v1/steps/dkvu',
|
| headers={**HEADERS},
|
| )
|
|
|
| # assert response.status == expected_status
|
| response_body = await response.json()
|
| > assert response_body == expected_response
|
| E AssertionError: assert failed for {'code': 'INT...server error'} == {}:
|
| E Extra fields in the left dict (3):
|
| E * ['code']: dict value: 'INTERNAL_SERVER_ERROR'
|
| E * ['details']: dict value: {'reason': 'previous_step is required property'}
|
| E * ['message']: dict value: 'Internal server error'
|
| E Full diff:
|
| E + {}
|
| E - {'code': 'INTERNAL_SERVER_ERROR',
|
| E - 'details': {'reason': 'previous_step is required property'},
|
| E - 'message': 'Internal server error'}
|
|
|
| services/pro-selfreg/test_pro_selfreg/web/pro/v1/pro_selfreg/v1/steps/dkvu/test_pro_v1_pro_selfreg_v1_steps_dkvu_get.py:54: AssertionError
|