Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.scanner.tests.test_backend::test_backend_endpoint_one_not_present
Failed

TEST RESULT

Run At
Dec 17 2020, 7:53 AM
Details
tmp_path = PosixPath('/tmp/pytest-of-jenkins/pytest-0/test_backend_endpoint_one_not_0') live_server = <LiveServer listening at http://localhost:6600> test_swhids_sample = <_io.TextIOWrapper name='/tmp/pytest-of-jenkins/pytest-0/test_backend_endpoint_one_not_0/swhids_sample.txt' mode='r' encoding='UTF-8'> def test_backend_endpoint_one_not_present(tmp_path, live_server, test_swhids_sample): tmp_dbfile = tmp_path / "tmp_db.sqlite" not_present_swhid = "swh:1:cnt:fa8eacf43d8646129ae8adfa1648f9307d999999" swhids = present_swhids + [not_present_swhid] db = Db(tmp_dbfile) cur = db.conn.cursor() db.create_from(test_swhids_sample, LIMIT, cur) > app = create_app(db) .tox/py3/lib/python3.7/site-packages/swh/scanner/tests/test_backend.py:36: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.7/site-packages/swh/scanner/backend.py:20: in create_app db = Db(Path(db_file)) /usr/lib/python3.7/pathlib.py:1003: in __new__ self = cls._from_parts(args, init=False) /usr/lib/python3.7/pathlib.py:658: in _from_parts drv, root, parts = self._parse_args(args) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = <class 'pathlib.PosixPath'> args = (<swh.scanner.db.Db object at 0x7f3863de6588>,) @classmethod def _parse_args(cls, args): # This is useful when you don't want to create an instance, just # canonicalize some constructor arguments. parts = [] for a in args: if isinstance(a, PurePath): parts += a._parts else: > a = os.fspath(a) E TypeError: expected str, bytes or os.PathLike object, not Db /usr/lib/python3.7/pathlib.py:642: TypeError