Page MenuHomeSoftware Heritage

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

TEST RESULT

Run At
Jan 13 2021, 11:07 AM
Details
tmp_path = PosixPath('/tmp/pytest-of-jenkins/pytest-0/test_backend_endpoint_all_pres0') live_server = <LiveServer listening at http://localhost:6600> test_swhids_sample = <_io.TextIOWrapper name='/tmp/pytest-of-jenkins/pytest-0/test_backend_endpoint_all_pres0/swhids_sample.txt' mode='r' encoding='UTF-8'> def test_backend_endpoint_all_present(tmp_path, live_server, test_swhids_sample): tmp_dbfile = tmp_path / "tmp_db.sqlite" 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:18: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .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 0x7f3ae25b0a58>,) @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