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(class_name, expected_class, kwargs, mock_psycopg2):
> concrete_vault = get_vault(class_name, **kwargs)
.tox/py3/lib/python3.7/site-packages/swh/vault/tests/test_init.py:40:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.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 0x7f03b0b36e48>
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
TEST RESULT
TEST RESULT
- Run At
- Oct 16 2020, 7:35 PM