Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.web.tests.random_fixtures_test::Tests / Python tests / test_random_fixture_values
Failed

TEST RESULT

Run At
Oct 14 2021, 4:09 PM
Details
sha1 = '148a71274b4eb55aa377883b61b0d9ce2ec037d2' invalid_sha1 = 'db81a42924691efd5ae6457b4dc86fc20d60efc128f7f51527e60985a33fdbf3bc274074baec0e9dea3ab65b208d62d3257d' sha256 = 'e26175588f6e2cd5037543ce6a057bb215badab564a4ec592f0d1bb1746e7715' content = {'blake2s256': 'cd04e186347fbbf470596402abd33abd672a117af218980f40ea669bc399926c', 'data': '<!DOCTYPE html>\n<html>\n<...ody&gt;\n</code></pre>\n\n\n\n\n\n\n\n\n\n</div>\n</body>\n</html>', 'encoding': 'binary', 'hljs_language': 'xml', ...} contents = [{'blake2s256': '634f25fe97e895b025dd59b9e561b3351c9cfecfbc9bc3d1be954a63407923c4', 'data': '/*\r\n** SGI FREE SOFTWAR...\t\tfree(path->pts);\n\t\tfree(path);\n\t\tpath = next;\n\t}\n}\n", 'encoding': 'us-ascii', 'hljs_language': 'c', ...}] unknown_content = {'blake2s256': '711eec4cfd02946a1898084e014b5da3538389aee12c565409f4b518ede83ee8', 'sha1': '65cf16a42bda384352549dc0a4...99a4bef89da2b25814a88c23c89f33c37e0538c', 'sha256': '05ae173dc151b2c80ebcf1f8f4856d47ffc19b1b978fe9fb67a814f152c9d3a2'} unknown_contents = [{'blake2s256': '00750ce4acdd9e0a0e36383ad6bcee0831c4020d8154deb4f232db3a659798d2', 'sha1': 'd6a1d84821070023f5d410bf3...c532fbac80fa7553181718ef76251dbc86918a', 'sha256': 'b45c08c2c211a5c74749531316d63a6f3bc6736e1985c3f629f61c6c9bb2a86b'}] content_text = {'blake2s256': 'b7fa140b477bd0ae5784c4038234be1b567cfa889b187b004e51c26531cea6fb', 'data': '{\n "name": "highlightjs-...": "https://github.com/wcoder/highlightjs-line-numbers.js"\n}\n', 'encoding': 'us-ascii', 'hljs_language': 'json', ...} content_text_non_utf8 = {'blake2s256': '683794acca5e47e33fd2f2527c9345d251cf07375d21ac48b9d4b64818870727', 'data': '\ufeff/* Localized version...adableCopyright = "Copyright 2009 __MyCompanyName__.";\n', 'encoding': 'utf-16le', 'hljs_language': 'nohighlight', ...} content_application_no_highlight = {'blake2s256': '984a86db20de52fb4123fd24b4920917cde78aa39a19a9aa532f3fc6760e371e', 'data': '-----BEGIN PGP PUBLIC KEY ...yLpmKVLprw=\n=K5VA\n-----END PGP PUBLIC KEY BLOCK-----\n', 'encoding': 'us-ascii', 'hljs_language': 'nohighlight', ...} content_text_no_highlight = {'blake2s256': 'fb4f4af12018b6ea16fd7d732243a3f3fc41e61903251b1bf4edeb26e4b0fe1e', 'data': '## Compiled source #\n*.co... Build dir\nBuild/*\n\n## xcode specific\n*xcuserdata*\n', 'encoding': 'us-ascii', 'hljs_language': 'nohighlight', ...} content_image_type = {'blake2s256': 'd372bfca526245a5c11c0915b13f392121741e9762733f5a80fb2c1b10acb5e4', 'data': 'PD94bWwgdmVyc2lvbj0iMS4wIi...NSw2OS40OTggDQoJMCw0MS41OTUgMzkuNTU5LDM1Ljg0OCAiLz4NCjwvc3ZnPg0K', 'encoding': 'us-ascii', 'hljs_language': 'xml', ...} content_unsupported_image_type_rendering = {'blake2s256': 'b2bc63e7c3580338cbe00d9e0797b397aea3acd56ab35c29ab56b0fd87aace56', 'data': b'P1\n# PBM example\n24 7\n...0 0 0 0\n0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0', 'encoding': 'us-ascii', 'hljs_language': 'nohighlight', ...} content_utf8_detected_as_binary = {'blake2s256': 'c626ec439442ed3aa4f7aa7d9e5916d5c6ab8f8b29087730845038bface0f482', 'data': '!function(e){"undefined"!=...tring",b:"`",e:"`",c:[e.BE]},e.CNM,e.CBCM,t]},e.CBCM,t]}});', 'encoding': 'binary', 'hljs_language': 'javascript', ...} directory = 'e5377e491afad83d798efe3b68b8e9fc82810851' directory_with_subdirs = 'bd71a858fc7a6a17eaa2872d7a98ad2b675442cc' directory_with_files = 'e34b4b770ac7e0976a6d4a37c62e2ecce5029ec2' unknown_directory = 'df696344cb78e9d5f206ef70ccc20c2b0648eb1b' release = '81636a2dd94bdc1949dc441531eaa64bda948461' releases = ['dcd0595fa1e6e94f74d899b56cfced541ddb05c6', 'dcd0595fa1e6e94f74d899b56cfced541ddb05c6', 'eb8cb8546cc99653defe0210350958d496571b74'] unknown_release = '4b6f07e84bf4ef74fb20219756e3972320837d1f' revision = 'a1734a2e0cab8b97a9b2d16216784c21f5cb1d53' revisions = ['b7f382aa6225bdf18930213407c88ff84a834ef0', 'd87aa59fc671b0c3bbeb3a8e3a40d9c02b926d33', '59f905d3634e09bfd0cb2f4a6efbc3dde1e2f7c5', '203d62f17453647d8263498b32ad422ed8da4fbe', '25f13918f3dd50a49307f64cfdef416d5c64399f'] revisions_list = <function revisions_list.<locals>.gen_revisions_list at 0x7f5407055f28> unknown_revision = 'b681ecf37ffe705c6307e9a7bc07fff0b4d27613' ancestor_revisions = {'children': ['8c67b5504407db17c40a28cb6f578d06e597ad12'], 'sha1_git': '675285e7af67fb4052d8c9f2d0257dbc3cff825b', 'sha1_git_root': '3bd01955e961aa2e6e1b6f9cd9e003f94273584e'} non_ancestor_revisions = {'sha1_git': '00bf99ea46aeaf1897103b42f5834a561a1e834e', 'sha1_git_root': 'c7c3e858e34ed3f29e671b258b01aa9d04bf4d78'} snapshot = '99ce72dbb2679eb6962ab9bbf85152857bba81a2' unknown_snapshot = 'b462c32a97fa7f64efeb1f570b9a2adedc66351f' origin = {'archives': ['highlightjs-line-numbers.js.zip', 'highlightjs-line-numbers.js_visit2.zip'], 'id': b'MZ\xc0H_lE[d\xcc\x...s://doi.org/10.5063/schema/codemeta-2.0', 'description': 'Line numbering plugin for Highlight.js'}, 'type': 'git', ...} origin_with_multiple_visits = {'archives': ['highlightjs-line-numbers.js.zip', 'highlightjs-line-numbers.js_visit2.zip'], 'id': b'MZ\xc0H_lE[d\xcc\x...s://doi.org/10.5063/schema/codemeta-2.0', 'description': 'Line numbering plugin for Highlight.js'}, 'type': 'git', ...} origin_with_releases = {'archives': ['highlightjs-line-numbers.js.zip', 'highlightjs-line-numbers.js_visit2.zip'], 'id': b'MZ\xc0H_lE[d\xcc\x...s://doi.org/10.5063/schema/codemeta-2.0', 'description': 'Line numbering plugin for Highlight.js'}, 'type': 'git', ...} origin_with_pull_request_branches = Origin(url='https://git.example.org/project', id=b'$3VQ}5\xae)\xc0\x8b\x96\x1b\xc9?w\x80m\xac\x97`') content_swhid = QualifiedSWHID(namespace='swh', scheme_version=1, object_id=b'/:\xc3\nn\xf8/R\xecP\xaem\xdc\xd8\xe7\xe3\xdd/NQ', objec...f9_\xbd\xbf\xd5', object_type=<ObjectType.REVISION: 'rev'>), path=b'/dist/highlightjs-line-numbers.min.js', lines=None) directory_swhid = QualifiedSWHID(namespace='swh', scheme_version=1, object_id=b'|\xc1s\xc0p\x06\x11q\x16n)\x96\xce\x96\xae\x8e\xd35\xbd\...\xf7\xc1w\xccJ\xcb\xa8\x15\xf9_\xbd\xbf\xd5', object_type=<ObjectType.REVISION: 'rev'>), path=b'/.github/', lines=None) release_swhid = QualifiedSWHID(namespace='swh', scheme_version=1, object_id=b'hw\x02\x8dnT\x12x\x05\x17\xd0\xbf\xa8\x1f\x07\xf6\xc5\x1...:\xfa\x15auJ\x04\x1a\xcad\xd7X\x0e\xc2', object_type=<ObjectType.SNAPSHOT: 'snp'>), anchor=None, path=None, lines=None) revision_swhid = QualifiedSWHID(namespace='swh', scheme_version=1, object_id=b'V\xd5\xc8{Yk\xfey/y\xb2\xe4\x1f\xde\x83\xb7i\xf6@m', obj...97<\xd6\xee\xcc\x04\xe8j\xfd{F\xbb\xfa', object_type=<ObjectType.SNAPSHOT: 'snp'>), anchor=None, path=None, lines=None) snapshot_swhid = QualifiedSWHID(namespace='swh', scheme_version=1, object_id=b'\xda\x8a\xbf>\xc5 :\xfa\x15auJ\x04\x1a\xcad\xd7X\x0e\xc2...'snp'>, origin='https://github.com/wcoder/highlightjs-line-numbers.js', visit=None, anchor=None, path=None, lines=None) def test_random_fixture_values( sha1, invalid_sha1, sha256, content, contents, unknown_content, unknown_contents, content_text, content_text_non_utf8, content_application_no_highlight, content_text_no_highlight, content_image_type, content_unsupported_image_type_rendering, content_utf8_detected_as_binary, directory, directory_with_subdirs, directory_with_files, unknown_directory, release, releases, unknown_release, revision, revisions, revisions_list, unknown_revision, ancestor_revisions, non_ancestor_revisions, snapshot, unknown_snapshot, origin, origin_with_multiple_visits, origin_with_releases, origin_with_pull_request_branches, content_swhid, directory_swhid, release_swhid, revision_swhid, snapshot_swhid, ): """Special test to print values of swh-web fixtures returning random data. It is not integrated in swh-web test suite but will be executed by explicitly invoking pytest in tests located in swh/web/tests/test_random_fixtures.py. """ print( "\n".join( [ sha1, invalid_sha1, sha256, content["sha1"], str([c["sha1"] for c in contents]), unknown_content["sha1"], str([c["sha1"] for c in unknown_contents]), content_text["sha1"], content_text_non_utf8["sha1"], content_application_no_highlight["sha1"], content_text_no_highlight["sha1"], content_image_type["sha1"], content_unsupported_image_type_rendering["sha1"], content_utf8_detected_as_binary["sha1"], directory, directory_with_subdirs, directory_with_files, unknown_directory, release, str(releases), unknown_release, revision, str(revisions), str(revisions_list(size=3)), unknown_revision, str(ancestor_revisions), str(non_ancestor_revisions), snapshot, unknown_snapshot, origin["url"], origin_with_multiple_visits["url"], origin_with_releases["url"], origin_with_pull_request_branches.url, str(content_swhid), str(directory_swhid), str(release_swhid), str(revision_swhid), str(snapshot_swhid), ] ), file=sys.stderr, ) > assert False E assert False .tox/py3/lib/python3.7/site-packages/swh/web/tests/random_fixtures_test.py:99: AssertionError