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:03 PM
Details
sha1 = 'd279bf871f3c0a04734d7d89e8fbf41609be7bb0' invalid_sha1 = '0364eb605c9c26b36cb1f1ded4b0706431afe3b4f701fcbfe0ef6e9b149685203f1516158c5998f1fd34d696f1b6bd7eb4f6' sha256 = 'b3c44512959691329d07e3e0c7ac3e11c4d5f6930aa06253d787a01a5a442ef7' content = {'blake2s256': 'f3495cffa6ebeece70825fe0b2372540ffde6853cd2e4917478e102e38043181', 'data': '[submodule "highlightjs-li...ibtess2\n\turl = https://github.com/memononen/libtess2\n', 'encoding': 'us-ascii', 'hljs_language': 'nohighlight', ...} contents = [{'blake2s256': '18e95010ee4e04e9a4db4f38ea4e4f10f977d58b58697cf52ca880e4cacdc070', 'data': 'var gulp = require(\'gulp...ramework Cocoa", "-framework IOKit", "-framework CoreVideo" }\n', 'encoding': 'us-ascii', 'hljs_language': 'lua', ...}] unknown_content = {'blake2s256': '3b4f8f39a55b0c6fb6688d4559211741da02aab0e7b6ac6c03b9180061739e1a', 'sha1': 'ab4b19232b452e88bfb7ca89ae...40469173299d6cc2a1fe6f86456b2263e0995d1', 'sha256': '30de4bbfce8fd4b9797a6232e752e2e46057373c34dade6d9e680b4090571db2'} unknown_contents = [{'blake2s256': '22cf83b78c099cfc755e87cb4be820e2bac4d7d265b7a9212019a89b3a4e6a74', 'sha1': 'e2f6235a40fe548820018ea21...4117612e32f8b77a3df2066412b408ca1', 'sha256': '6d1f3ec2cdf9a96b2d24daa19e59496927cffb37397ea29d8ab8cca59fed9c01'}, ...] content_text = {'blake2s256': '8be9488e471c288e4196841d00735d7d501e81bee3ace986c2e2e5adad44b272', 'data': '\nWindows\nDownload SDL De...all OSX SDL Developer Libraries from http://www.libsdl.org', 'encoding': 'us-ascii', 'hljs_language': 'plaintext', ...} 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': '68cd46f19fba4d6f42f8cc5ec84c3fb95f328f97ee8892adc075bd36081fd954', 'data': '\ufeff\r\nMicrosoft Visual...SolutionNode = FALSE\r\n\tEndGlobalSection\r\nEndGlobal\r\n', 'encoding': 'utf-8', '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': '376e29cb3eae299e6960b900134ce40b1f68d2a6af1f5f2c649d08c18e8163d1', 'data': '<!DOCTYPE html>\n<html>\n<...--&gt;\n&lt;/body&gt;\n</code></pre>\n\n\n</div>\n</body>\n</html>', 'encoding': 'binary', 'hljs_language': 'xml', ...} directory = '239a3706c783a6a45d94e646ad955d8c8a3d7270' directory_with_subdirs = 'e34b4b770ac7e0976a6d4a37c62e2ecce5029ec2' directory_with_files = '6fe270ebbe56c18f0435a94fdbc3bd01cbfcb86b' unknown_directory = 'c7154578bbf9b7bf6596941c1b830011e6218efa' release = '81636a2dd94bdc1949dc441531eaa64bda948461' releases = ['dcd0595fa1e6e94f74d899b56cfced541ddb05c6', '6877028d6e5412780517d0bfa81f07f6c51abb41', 'eb8cb8546cc99653defe02103509...6e94f74d899b56cfced541ddb05c6', '85a96217a3897dd1bcce9df77b1968fc864e3c1e', '85a96217a3897dd1bcce9df77b1968fc864e3c1e'] unknown_release = '506fe914098225b477f04b2216650692bd224051' revision = 'b7f382aa6225bdf18930213407c88ff84a834ef0' revisions = ['c974bb09b9aab1dad27249a9f75a3a692666b834', 'a43504d78a5695ca07cf3706e34abfdfd5b4343b', 'd87aa59fc671b0c3bbeb3a8e3a40d9c02b926d33'] revisions_list = <function revisions_list.<locals>.gen_revisions_list at 0x7f9dfb15eb70> unknown_revision = 'eed5e46430ed7152fab4bfa8f9c4d622fc904a3b' ancestor_revisions = {'children': ['e4a53fcd913273dce4834a44a093d48094a61896'], 'sha1_git': 'a25bcf7a878ad1c4e798eafc683915fad2d847a9', 'sha1_git_root': '3bd01955e961aa2e6e1b6f9cd9e003f94273584e'} non_ancestor_revisions = {'sha1_git': '00bf99ea46aeaf1897103b42f5834a561a1e834e', 'sha1_git_root': 'c7c3e858e34ed3f29e671b258b01aa9d04bf4d78'} snapshot = 'da8abf3ec5203afa1561754a041aca64d7580ec2' unknown_snapshot = '1b218f5f37e9d6ca2d89396593b7de1d40791a06' origin = {'archives': ['libtess2.zip'], 'id': b'\x0fH`\x80Q\x0eN\xeb\x98\xbe\x0c\xc8k\xa8\x06\xc0\xc7>\xe8\xa2', 'metadata': {'...ma/codemeta-2.0', 'description': 'Game and tools oriented refactored version of GLU tessellator.'}, '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'2\xf0\xf8m\xca\xf9.\xd1oR\x83\xa9[f\xf7\x89\x03\x94\x05B...xfey/y\xb2\xe4\x1f\xde\x83\xb7i\xf6@m', object_type=<ObjectType.REVISION: 'rev'>), path=b'/Source/sweep.h', lines=None) directory_swhid = QualifiedSWHID(namespace='swh', scheme_version=1, object_id=b'\xa1\xff\xbd\'+/"\xa7\xe9d\x8c\xfc\xcb\x13&j\x99\xfa\xd2...|\x81\n\x88\xf2\x87C\xb5\xbd\xc8\x85\xa6\xd4', object_type=<ObjectType.REVISION: 'rev'>), path=b'/Source/', lines=None) release_swhid = QualifiedSWHID(namespace='swh', scheme_version=1, object_id=b'\x81cj-\xd9K\xdc\x19I\xdcD\x151\xea\xa6K\xda\x94\x84a', ...:\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'*\xcdv\xfd\xa5\xe7-N\xee\x901"\x1b\xd3@\xc7\xfc\xf9\xeby...:\xfa\x15auJ\x04\x1a\xcad\xd7X\x0e\xc2', 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