import pytest
pytest_plugins = ['pytest_userver.plugins.s3api']
@pytest.fixture(scope='session')
@pytest_userver.config.patch
def userver_s3_mock(mockserver_info):
def _do_patch(config_yaml, config_vars):
components = config_yaml['components_manager']['components']
components['s3-sample-component']['url'] = mockserver_info.url('/mds-s3')
return _do_patch