| taxi_pro_selfreg_web = <taxi.pytest_plugins.service_client.AiohttpClientTestsControl object at 0x77457d9e7e60>
|
| web_context = <pro_selfreg.generated.web.web_context.Context object at 0x77457d83c3b0>, expected_status = 200
|
| expected_response = {'data': {'data': {'button_title': 'title', 'image_url': 'subtitle', 'subtitle': 'button_title', 'title': 'image_url'}, 'status': 'initialization'}, 'previous_step': 'dkvu'}
|
|
|
| @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,
|
| {
|
| 'previous_step': 'dkvu',
|
| 'data': {
|
| 'data': {
|
| 'title': 'image_url',
|
| 'subtitle': 'button_title',
|
| 'button_title': 'title',
|
| 'image_url': 'subtitle',
|
| },
|
| 'status': 'initialization',
|
| },
|
| },
|
| id='200',
|
| ),
|
| ),
|
| )
|
| async def test_pro_v1_pro_selfreg_v1_steps_dkvu_get(
|
| taxi_pro_selfreg_web,
|
| web_context,
|
| 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
|
| E AssertionError: assert 500 == 200
|
| E + where 500 = <ClientResponse(http://127.0.0.1:41877/pro/v1/pro-selfreg/v1/steps/dkvu) [500 Internal Server Error]>\n<CIMultiDictProx...b7d153856e', 'Content-Length': '185', 'Date': 'Mon, 31 Mar 2025 08:13:39 GMT', 'Server': 'Python/3.12 aiohttp/3.9.5')>\n.status
|
|
|
| services/pro-selfreg/test_pro_selfreg/web/pro/v1/pro_selfreg/v1/steps/dkvu/test_pro_v1_pro_selfreg_v1_steps_dkvu_get.py:66: AssertionError
|