tinkerbell/web/pytest.js

1 line
No EOL
15 KiB
JavaScript

var Module=typeof pyodide._module!=="undefined"?pyodide._module:{};Module.checkABI(1);if(!Module.expectedDataFileDownloads){Module.expectedDataFileDownloads=0;Module.finishedDataFileDownloads=0}Module.expectedDataFileDownloads++;(function(){var loadPackage=function(metadata){var PACKAGE_PATH;if(typeof window==="object"){PACKAGE_PATH=window["encodeURIComponent"](window.location.pathname.toString().substring(0,window.location.pathname.toString().lastIndexOf("/"))+"/")}else if(typeof location!=="undefined"){PACKAGE_PATH=encodeURIComponent(location.pathname.toString().substring(0,location.pathname.toString().lastIndexOf("/"))+"/")}else{throw"using preloaded data can only be done on a web page or in a web worker"}var PACKAGE_NAME="pytest.data";var REMOTE_PACKAGE_BASE="pytest.data";if(typeof Module["locateFilePackage"]==="function"&&!Module["locateFile"]){Module["locateFile"]=Module["locateFilePackage"];err("warning: you defined Module.locateFilePackage, that has been renamed to Module.locateFile (using your locateFilePackage for now)")}var REMOTE_PACKAGE_NAME=Module["locateFile"]?Module["locateFile"](REMOTE_PACKAGE_BASE,""):REMOTE_PACKAGE_BASE;var REMOTE_PACKAGE_SIZE=metadata.remote_package_size;var PACKAGE_UUID=metadata.package_uuid;function fetchRemotePackage(packageName,packageSize,callback,errback){var xhr=new XMLHttpRequest;xhr.open("GET",packageName,true);xhr.responseType="arraybuffer";xhr.onprogress=function(event){var url=packageName;var size=packageSize;if(event.total)size=event.total;if(event.loaded){if(!xhr.addedTotal){xhr.addedTotal=true;if(!Module.dataFileDownloads)Module.dataFileDownloads={};Module.dataFileDownloads[url]={loaded:event.loaded,total:size}}else{Module.dataFileDownloads[url].loaded=event.loaded}var total=0;var loaded=0;var num=0;for(var download in Module.dataFileDownloads){var data=Module.dataFileDownloads[download];total+=data.total;loaded+=data.loaded;num++}total=Math.ceil(total*Module.expectedDataFileDownloads/num);if(Module["setStatus"])Module["setStatus"]("Downloading data... ("+loaded+"/"+total+")")}else if(!Module.dataFileDownloads){if(Module["setStatus"])Module["setStatus"]("Downloading data...")}};xhr.onerror=function(event){throw new Error("NetworkError for: "+packageName)};xhr.onload=function(event){if(xhr.status==200||xhr.status==304||xhr.status==206||xhr.status==0&&xhr.response){var packageData=xhr.response;callback(packageData)}else{throw new Error(xhr.statusText+" : "+xhr.responseURL)}};xhr.send(null)}function handleError(error){console.error("package error:",error)}var fetchedCallback=null;var fetched=Module["getPreloadedPackage"]?Module["getPreloadedPackage"](REMOTE_PACKAGE_NAME,REMOTE_PACKAGE_SIZE):null;if(!fetched)fetchRemotePackage(REMOTE_PACKAGE_NAME,REMOTE_PACKAGE_SIZE,function(data){if(fetchedCallback){fetchedCallback(data);fetchedCallback=null}else{fetched=data}},handleError);function runWithFS(){function assert(check,msg){if(!check)throw msg+(new Error).stack}Module["FS_createPath"]("/","bin",true,true);Module["FS_createPath"]("/","lib",true,true);Module["FS_createPath"]("/lib","python3.8",true,true);Module["FS_createPath"]("/lib/python3.8","site-packages",true,true);Module["FS_createPath"]("/lib/python3.8/site-packages","pytest-3.6.3-py3.8.egg-info",true,true);Module["FS_createPath"]("/lib/python3.8/site-packages","_pytest",true,true);Module["FS_createPath"]("/lib/python3.8/site-packages/_pytest","_code",true,true);Module["FS_createPath"]("/lib/python3.8/site-packages/_pytest","config",true,true);Module["FS_createPath"]("/lib/python3.8/site-packages/_pytest","assertion",true,true);Module["FS_createPath"]("/lib/python3.8/site-packages/_pytest","mark",true,true);function DataRequest(start,end,audio){this.start=start;this.end=end;this.audio=audio}DataRequest.prototype={requests:{},open:function(mode,name){this.name=name;this.requests[name]=this;Module["addRunDependency"]("fp "+this.name)},send:function(){},onload:function(){var byteArray=this.byteArray.subarray(this.start,this.end);this.finish(byteArray)},finish:function(byteArray){var that=this;Module["FS_createPreloadedFile"](this.name,null,byteArray,true,true,function(){Module["removeRunDependency"]("fp "+that.name)},function(){if(that.audio){Module["removeRunDependency"]("fp "+that.name)}else{err("Preloading file "+that.name+" failed")}},false,true);this.requests[this.name]=null}};function processPackageData(arrayBuffer){Module.finishedDataFileDownloads++;assert(arrayBuffer,"Loading data file failed.");assert(arrayBuffer instanceof ArrayBuffer,"bad input to processPackageData");var byteArray=new Uint8Array(arrayBuffer);var curr;var compressedData={data:null,cachedOffset:376676,cachedIndexes:[-1,-1],cachedChunks:[null,null],offsets:[0,1054,2220,3333,4551,5692,6120,6912,7775,9001,10351,11614,12812,13817,14846,16078,17260,18525,19622,20520,21554,22783,23978,25227,26449,27426,28619,29910,31154,32227,33390,34587,35511,36520,37515,38589,39638,40716,41850,43177,44329,45499,46514,47919,49058,49919,50818,52062,53375,54368,55242,56302,57571,58672,59771,60882,62082,63391,64605,65723,66866,68047,69346,70569,71834,73038,74302,75410,76417,77677,78894,80151,81302,82529,83778,84970,86222,87451,88575,89824,90957,92225,93331,94465,95708,97116,98486,99838,101196,102527,103915,105240,106441,107733,109046,110278,111624,112599,113861,115014,116182,117422,118409,119480,120622,121790,122852,124070,124933,126171,127672,129123,130293,131433,132466,133599,134747,135985,137290,138183,139560,140671,142040,143376,144628,145809,146985,148249,149315,150640,151822,152982,154135,155283,156530,157699,158906,160087,161403,162712,164053,165278,166376,167432,168486,169856,171134,172365,173702,174931,176143,177444,178523,179621,180791,181954,183002,184290,185410,186667,187923,188897,190124,191466,192651,193809,194964,196156,197467,198763,200126,201223,202532,203860,205003,206101,207274,208306,209593,210912,212065,213449,214790,216041,217354,218614,219743,221132,222348,223601,224823,226032,227182,228444,229618,230767,231969,233159,234187,235270,236639,237956,239102,240431,241816,242902,243827,244827,245967,247235,248294,249427,250535,251933,253399,254726,255911,256838,258001,259212,260427,261563,262808,263952,265237,266419,267709,268858,269966,271099,272395,273701,275098,276474,277636,278882,280050,281180,282443,283682,284784,285932,287172,288279,289409,290637,291561,292636,293540,294582,295933,296906,298114,299455,300696,302018,303150,304358,305580,306702,307875,309201,310286,311545,312801,313978,315183,316387,317558,318918,320183,321355,322635,323771,324858,326087,327187,328492,329868,331180,332314,333660,334949,336142,337418,338804,340254,341437,342670,343971,345365,346517,347662,348889,350063,351284,352415,353514,354760,356088,357176,358488,359665,360623,361926,363011,364371,365701,366843,368083,369359,370610,371851,373177,374346,375623],sizes:[1054,1166,1113,1218,1141,428,792,863,1226,1350,1263,1198,1005,1029,1232,1182,1265,1097,898,1034,1229,1195,1249,1222,977,1193,1291,1244,1073,1163,1197,924,1009,995,1074,1049,1078,1134,1327,1152,1170,1015,1405,1139,861,899,1244,1313,993,874,1060,1269,1101,1099,1111,1200,1309,1214,1118,1143,1181,1299,1223,1265,1204,1264,1108,1007,1260,1217,1257,1151,1227,1249,1192,1252,1229,1124,1249,1133,1268,1106,1134,1243,1408,1370,1352,1358,1331,1388,1325,1201,1292,1313,1232,1346,975,1262,1153,1168,1240,987,1071,1142,1168,1062,1218,863,1238,1501,1451,1170,1140,1033,1133,1148,1238,1305,893,1377,1111,1369,1336,1252,1181,1176,1264,1066,1325,1182,1160,1153,1148,1247,1169,1207,1181,1316,1309,1341,1225,1098,1056,1054,1370,1278,1231,1337,1229,1212,1301,1079,1098,1170,1163,1048,1288,1120,1257,1256,974,1227,1342,1185,1158,1155,1192,1311,1296,1363,1097,1309,1328,1143,1098,1173,1032,1287,1319,1153,1384,1341,1251,1313,1260,1129,1389,1216,1253,1222,1209,1150,1262,1174,1149,1202,1190,1028,1083,1369,1317,1146,1329,1385,1086,925,1e3,1140,1268,1059,1133,1108,1398,1466,1327,1185,927,1163,1211,1215,1136,1245,1144,1285,1182,1290,1149,1108,1133,1296,1306,1397,1376,1162,1246,1168,1130,1263,1239,1102,1148,1240,1107,1130,1228,924,1075,904,1042,1351,973,1208,1341,1241,1322,1132,1208,1222,1122,1173,1326,1085,1259,1256,1177,1205,1204,1171,1360,1265,1172,1280,1136,1087,1229,1100,1305,1376,1312,1134,1346,1289,1193,1276,1386,1450,1183,1233,1301,1394,1152,1145,1227,1174,1221,1131,1099,1246,1328,1088,1312,1177,958,1303,1085,1360,1330,1142,1240,1276,1251,1241,1326,1169,1277,1053],successes:[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]};compressedData.data=byteArray;assert(typeof Module.LZ4==="object","LZ4 not present - was your app build with -s LZ4=1 ?");Module.LZ4.loadPackage({metadata:metadata,compressedData:compressedData});Module["removeRunDependency"]("datafile_pytest.data")}Module["addRunDependency"]("datafile_pytest.data");if(!Module.preloadResults)Module.preloadResults={};Module.preloadResults[PACKAGE_NAME]={fromCache:false};if(fetched){processPackageData(fetched);fetched=null}else{fetchedCallback=processPackageData}}if(Module["calledRun"]){runWithFS()}else{if(!Module["preRun"])Module["preRun"]=[];Module["preRun"].push(runWithFS)}};loadPackage({files:[{filename:"/bin/pytest",start:0,end:402,audio:0},{filename:"/bin/py.test",start:402,end:806,audio:0},{filename:"/lib/python3.8/site-packages/pytest.py",start:806,end:2518,audio:0},{filename:"/lib/python3.8/site-packages/pytest-3.6.3-py3.8.egg-info/top_level.txt",start:2518,end:2533,audio:0},{filename:"/lib/python3.8/site-packages/pytest-3.6.3-py3.8.egg-info/PKG-INFO",start:2533,end:8462,audio:0},{filename:"/lib/python3.8/site-packages/pytest-3.6.3-py3.8.egg-info/dependency_links.txt",start:8462,end:8463,audio:0},{filename:"/lib/python3.8/site-packages/pytest-3.6.3-py3.8.egg-info/not-zip-safe",start:8463,end:8464,audio:0},{filename:"/lib/python3.8/site-packages/pytest-3.6.3-py3.8.egg-info/entry_points.txt",start:8464,end:8526,audio:0},{filename:"/lib/python3.8/site-packages/pytest-3.6.3-py3.8.egg-info/SOURCES.txt",start:8526,end:17506,audio:0},{filename:"/lib/python3.8/site-packages/pytest-3.6.3-py3.8.egg-info/requires.txt",start:17506,end:17683,audio:0},{filename:"/lib/python3.8/site-packages/_pytest/outcomes.py",start:17683,end:22492,audio:0},{filename:"/lib/python3.8/site-packages/_pytest/logging.py",start:22492,end:42122,audio:0},{filename:"/lib/python3.8/site-packages/_pytest/runner.py",start:42122,end:59647,audio:0},{filename:"/lib/python3.8/site-packages/_pytest/hookspec.py",start:59647,end:77981,audio:0},{filename:"/lib/python3.8/site-packages/_pytest/recwarn.py",start:77981,end:86590,audio:0},{filename:"/lib/python3.8/site-packages/_pytest/junitxml.py",start:86590,end:105612,audio:0},{filename:"/lib/python3.8/site-packages/_pytest/main.py",start:105612,end:126017,audio:0},{filename:"/lib/python3.8/site-packages/_pytest/nose.py",start:126017,end:128606,audio:0},{filename:"/lib/python3.8/site-packages/_pytest/pytester.py",start:128606,end:171241,audio:0},{filename:"/lib/python3.8/site-packages/_pytest/deprecated.py",start:171241,end:173853,audio:0},{filename:"/lib/python3.8/site-packages/_pytest/compat.py",start:173853,end:184615,audio:0},{filename:"/lib/python3.8/site-packages/_pytest/helpconfig.py",start:184615,end:191310,audio:0},{filename:"/lib/python3.8/site-packages/_pytest/pastebin.py",start:191310,end:194946,audio:0},{filename:"/lib/python3.8/site-packages/_pytest/_version.py",start:194946,end:195062,audio:0},{filename:"/lib/python3.8/site-packages/_pytest/terminal.py",start:195062,end:223867,audio:0},{filename:"/lib/python3.8/site-packages/_pytest/_argcomplete.py",start:223867,end:227547,audio:0},{filename:"/lib/python3.8/site-packages/_pytest/__init__.py",start:227547,end:227786,audio:0},{filename:"/lib/python3.8/site-packages/_pytest/doctest.py",start:227786,end:244733,audio:0},{filename:"/lib/python3.8/site-packages/_pytest/freeze_support.py",start:244733,end:245928,audio:0},{filename:"/lib/python3.8/site-packages/_pytest/setuponly.py",start:245928,end:248551,audio:0},{filename:"/lib/python3.8/site-packages/_pytest/fixtures.py",start:248551,end:295469,audio:0},{filename:"/lib/python3.8/site-packages/_pytest/python.py",start:295469,end:343055,audio:0},{filename:"/lib/python3.8/site-packages/_pytest/monkeypatch.py",start:343055,end:352861,audio:0},{filename:"/lib/python3.8/site-packages/_pytest/python_api.py",start:352861,end:377514,audio:0},{filename:"/lib/python3.8/site-packages/_pytest/warnings.py",start:377514,end:380844,audio:0},{filename:"/lib/python3.8/site-packages/_pytest/nodes.py",start:380844,end:394771,audio:0},{filename:"/lib/python3.8/site-packages/_pytest/resultlog.py",start:394771,end:398495,audio:0},{filename:"/lib/python3.8/site-packages/_pytest/cacheprovider.py",start:398495,end:410466,audio:0},{filename:"/lib/python3.8/site-packages/_pytest/debugging.py",start:410466,end:415519,audio:0},{filename:"/lib/python3.8/site-packages/_pytest/capture.py",start:415519,end:438891,audio:0},{filename:"/lib/python3.8/site-packages/_pytest/unittest.py",start:438891,end:447464,audio:0},{filename:"/lib/python3.8/site-packages/_pytest/skipping.py",start:447464,end:457544,audio:0},{filename:"/lib/python3.8/site-packages/_pytest/tmpdir.py",start:457544,end:461810,audio:0},{filename:"/lib/python3.8/site-packages/_pytest/setupplan.py",start:461810,end:462633,audio:0},{filename:"/lib/python3.8/site-packages/_pytest/_code/source.py",start:462633,end:474803,audio:0},{filename:"/lib/python3.8/site-packages/_pytest/_code/_py2traceback.py",start:474803,end:477808,audio:0},{filename:"/lib/python3.8/site-packages/_pytest/_code/__init__.py",start:477808,end:478218,audio:0},{filename:"/lib/python3.8/site-packages/_pytest/_code/code.py",start:478218,end:510673,audio:0},{filename:"/lib/python3.8/site-packages/_pytest/config/exceptions.py",start:510673,end:510902,audio:0},{filename:"/lib/python3.8/site-packages/_pytest/config/findpaths.py",start:510902,end:515911,audio:0},{filename:"/lib/python3.8/site-packages/_pytest/config/__init__.py",start:515911,end:550142,audio:0},{filename:"/lib/python3.8/site-packages/_pytest/config/argparsing.py",start:550142,end:565260,audio:0},{filename:"/lib/python3.8/site-packages/_pytest/assertion/__init__.py",start:565260,end:570385,audio:0},{filename:"/lib/python3.8/site-packages/_pytest/assertion/truncate.py",start:570385,end:573716,audio:0},{filename:"/lib/python3.8/site-packages/_pytest/assertion/rewrite.py",start:573716,end:609788,audio:0},{filename:"/lib/python3.8/site-packages/_pytest/assertion/util.py",start:609788,end:621281,audio:0},{filename:"/lib/python3.8/site-packages/_pytest/mark/evaluate.py",start:621281,end:625051,audio:0},{filename:"/lib/python3.8/site-packages/_pytest/mark/__init__.py",start:625051,end:630216,audio:0},{filename:"/lib/python3.8/site-packages/_pytest/mark/structures.py",start:630216,end:643732,audio:0},{filename:"/lib/python3.8/site-packages/_pytest/mark/legacy.py",start:643732,end:646778,audio:0}],remote_package_size:380772,package_uuid:"7408ccac-6369-42fb-a3a2-9c0b63f273f7"})})();