Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.vault.tests.test_init::test_init_get_vault_deprecation_warning[local-VaultBackend-kwargs1]
Failed

TEST RESULT

Run At
Oct 16 2020, 7:35 PM
Details
class_name = 'local', expected_class = <class 'swh.vault.backend.VaultBackend'> kwargs = {'cache': {'args': {}, 'cls': 'memory'}, 'db': 'something', 'scheduler': {'cls': 'remote', 'url': 'mock://url'}, 'storage': {'cls': 'memory'}} mock_psycopg2 = None @pytest.mark.parametrize("class_name,expected_class,kwargs", SERVER_IMPLEMENTATIONS) def test_init_get_vault_deprecation_warning( class_name, expected_class, kwargs, mock_psycopg2 ): with pytest.warns(DeprecationWarning): > concrete_vault = get_vault(class_name, args=kwargs) .tox/py3/lib/python3.7/site-packages/swh/vault/tests/test_init.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.7/site-packages/swh/vault/__init__.py:54: in get_vault return Vault(**kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <swh.vault.backend.VaultBackend object at 0x7f03b0b75ba8> db = 'something' config = {'cache': {'args': {}, 'cls': 'memory'}, 'scheduler': {'cls': 'remote', 'url': 'mock://url'}, 'storage': {'cls': 'memory'}} def __init__(self, db, **config): self.config = config self.cache = VaultCache(**config["cache"]) > self.scheduler = get_scheduler(**config["scheduler"]) E TypeError: get_scheduler() got an unexpected keyword argument 'url' .tox/py3/lib/python3.7/site-packages/swh/vault/backend.py:76: TypeError