Page MenuHomeSoftware Heritage

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

TEST RESULT

Run At
Apr 6 2021, 4:26 PM
Details
swh_counters_server_config_on_disk = None mocker = <pytest_mock.plugin.MockerFixture object at 0x7f5e883270b8> def test_server_index(swh_counters_server_config_on_disk, mocker): """Test the result of the main page""" > app = make_app_from_configfile() .tox/py3/lib/python3.7/site-packages/swh/counters/tests/test_server.py:94: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.7/site-packages/swh/counters/api/server.py:92: in make_app_from_configfile app = make_app(api_cfg) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ config = {'counters': {'cls': 'redis', 'host': 'redis'}} def make_app(config: Dict[str, Any]) -> RPCServerApp: """Initialize the remote api application. """ app = RPCServerApp( __name__, backend_class=CountersInterface, backend_factory=lambda: get_counters(**config["counters"]), ) > app.add_backend_class( backend_class=HistoryInterface, backend_factory=lambda: get_history(**config["history"]), ) E AttributeError: 'RPCServerApp' object has no attribute 'add_backend_class' .tox/py3/lib/python3.7/site-packages/swh/counters/api/server.py:29: AttributeError