Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.vault.tests.test_server::test_make_app_from_env_variable
Failed

TEST RESULT

Run At
Oct 22 2020, 12:17 PM
Details
swh_vault_config_file = '/tmp/pytest-of-jenkins/pytest-0/test_make_app_from_env_variabl0/vault-server.yml' def test_make_app_from_env_variable(swh_vault_config_file): """Instantiation of the server should happen once (through environment variable) """ > app0 = make_app_from_configfile() .tox/py3/lib/python3.7/site-packages/swh/vault/tests/test_server.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.7/site-packages/swh/vault/api/server.py:123: in make_app_from_configfile app = make_app(api_cfg) .tox/py3/lib/python3.7/site-packages/swh/vault/api/server.py:101: in make_app backend_factory=lambda: get_vault(config_ok), _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <Application 0x7f6cf60a2358> middlewares = (<function negotiation_middleware.<locals>.factory at 0x7f6cf607ea60>, <function error_middleware at 0x7f6cf6bccae8>) args = ('swh.vault.api.server',) kwargs = {'backend_class': <class 'swh.vault.interface.VaultInterface'>, 'backend_factory': <function make_app.<locals>.<lambda> at 0x7f6cf607ee18>} renderers = OrderedDict([('application/json', <function render_json at 0x7f6cf6bcc9d8>), ('application/x-msgpack', <function render_msgpack at 0x7f6cf6c44f28>)]) nego_middleware = <function negotiation_middleware.<locals>.factory at 0x7f6cf607ea60> def __init__(self, *args, middlewares=(), **kwargs): middlewares = (error_middleware,) + middlewares # renderers are sorted in order of increasing desirability (!) # see mimeparse.best_match() docstring. renderers = OrderedDict( [ ("application/json", render_json), ("application/x-msgpack", render_msgpack), ] ) nego_middleware = negotiation.negotiation_middleware( renderers=renderers, force_rendering=True ) middlewares = (nego_middleware,) + middlewares > super().__init__(*args, middlewares=middlewares, **kwargs) E TypeError: __init__() got an unexpected keyword argument 'backend_class' .tox/py3/lib/python3.7/site-packages/swh/core/api/asynchronous.py:95: TypeError