Changeset 79087 in vbox for trunk/src/VBox/ValidationKit/testmanager/webui
- Timestamp:
- Jun 11, 2019 11:58:28 AM (6 years ago)
- Location:
- trunk/src/VBox/ValidationKit/testmanager/webui
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testmanager/webui/wuiadmin.py
r76553 r79087 812 812 self.ksActionGlobalRsrcShowAll); 813 813 814 def _actionGlobalRsrcShowAddEdit(self, sAction): # pylint: disable= C0103814 def _actionGlobalRsrcShowAddEdit(self, sAction): # pylint: disable=invalid-name 815 815 """Show Global Resource creation or edit dialog""" 816 816 from testmanager.core.globalresource import GlobalResourceLogic, GlobalResourceData; -
trunk/src/VBox/ValidationKit/testmanager/webui/wuiadmintestbox.py
r76553 r79087 239 239 return (sTitle, sBody); 240 240 241 def _formatListEntry(self, iEntry): # pylint: disable= R0914241 def _formatListEntry(self, iEntry): # pylint: disable=too-many-locals 242 242 from testmanager.webui.wuiadmin import WuiAdmin; 243 243 oEntry = self._aoEntries[iEntry]; … … 274 274 else: 275 275 from testmanager.webui.wuimain import WuiMain; 276 oState = WuiTmLink(oEntry.oStatus.enmState, WuiMain.ksScriptName, # pylint: disable= R0204276 oState = WuiTmLink(oEntry.oStatus.enmState, WuiMain.ksScriptName, # pylint: disable=redefined-variable-type 277 277 { WuiMain.ksParamAction: WuiMain.ksActionTestResultDetails, 278 278 TestSetData.ksParam_idTestSet: oEntry.oStatus.idTestSet, }, -
trunk/src/VBox/ValidationKit/testmanager/webui/wuibase.py
r76553 r79087 523 523 return asValues; 524 524 525 def getListOfTestCasesParam(self, sName, asDefaults = None): # too many local vars - pylint: disable= R0914525 def getListOfTestCasesParam(self, sName, asDefaults = None): # too many local vars - pylint: disable=too-many-locals 526 526 """Get list of test cases and their parameters""" 527 527 if sName in self._dParams: … … 855 855 return True 856 856 857 def _actionGenericFormDetails(self, oDataType, oLogicType, oFormType, sIdAttr = None, sGenIdAttr = None): # pylint: disable= R0914857 def _actionGenericFormDetails(self, oDataType, oLogicType, oFormType, sIdAttr = None, sGenIdAttr = None): # pylint: disable=too-many-locals 858 858 """ 859 859 Generic handler for showing a details form/page. -
trunk/src/VBox/ValidationKit/testmanager/webui/wuicontentbase.py
r76553 r79087 47 47 48 48 49 class WuiHtmlBase(object): # pylint: disable= R090349 class WuiHtmlBase(object): # pylint: disable=too-few-public-methods 50 50 """ 51 51 Base class for HTML objects. … … 69 69 70 70 71 class WuiLinkBase(WuiHtmlBase): # pylint: disable= R090371 class WuiLinkBase(WuiHtmlBase): # pylint: disable=too-few-public-methods 72 72 """ 73 73 For passing links from WuiListContentBase._formatListEntry. … … 118 118 119 119 120 class WuiTmLink(WuiLinkBase): # pylint: disable= R0903120 class WuiTmLink(WuiLinkBase): # pylint: disable=too-few-public-methods 121 121 """ Local link to the test manager. """ 122 122 … … 139 139 140 140 141 class WuiAdminLink(WuiTmLink): # pylint: disable= R0903141 class WuiAdminLink(WuiTmLink): # pylint: disable=too-few-public-methods 142 142 """ Local link to the test manager's admin portion. """ 143 143 … … 156 156 sFragmentId = sFragmentId, fBracketed = fBracketed); 157 157 158 class WuiMainLink(WuiTmLink): # pylint: disable= R0903158 class WuiMainLink(WuiTmLink): # pylint: disable=too-few-public-methods 159 159 """ Local link to the test manager's main portion. """ 160 160 … … 170 170 sFragmentId = sFragmentId, fBracketed = fBracketed); 171 171 172 class WuiSvnLink(WuiLinkBase): # pylint: disable= R0903172 class WuiSvnLink(WuiLinkBase): # pylint: disable=too-few-public-methods 173 173 """ 174 174 For linking to a SVN revision. … … 180 180 fBracketed = fBracketed, sExtraAttrs = sExtraAttrs); 181 181 182 class WuiSvnLinkWithTooltip(WuiSvnLink): # pylint: disable= R0903182 class WuiSvnLinkWithTooltip(WuiSvnLink): # pylint: disable=too-few-public-methods 183 183 """ 184 184 For linking to a SVN revision with changelog tooltip. … … 202 202 WuiLinkBase.__init__(self, sName, sUrl, fBracketed = fBracketed); 203 203 204 class WuiRawHtml(WuiHtmlBase): # pylint: disable= R0903204 class WuiRawHtml(WuiHtmlBase): # pylint: disable=too-few-public-methods 205 205 """ 206 206 For passing raw html from WuiListContentBase._formatListEntry. … … 213 213 return self.sHtml; 214 214 215 class WuiHtmlKeeper(WuiHtmlBase): # pylint: disable= R0903215 class WuiHtmlKeeper(WuiHtmlBase): # pylint: disable=too-few-public-methods 216 216 """ 217 217 For keeping a list of elements, concatenating their toHtml output together. … … 238 238 return self.sSep.join(oObj.toHtml() for oObj in self.aoKept); 239 239 240 class WuiSpanText(WuiRawHtml): # pylint: disable= R0903240 class WuiSpanText(WuiRawHtml): # pylint: disable=too-few-public-methods 241 241 """ 242 242 Outputs the given text within a span of the given CSS class. … … 252 252 % ( webutils.escapeAttr(sSpanClass), webutils.escapeAttr(sTitle), webutils.escapeElem(sText),)); 253 253 254 class WuiElementText(WuiRawHtml): # pylint: disable= R0903254 class WuiElementText(WuiRawHtml): # pylint: disable=too-few-public-methods 255 255 """ 256 256 Outputs the given element text. … … 260 260 261 261 262 class WuiContentBase(object): # pylint: disable= R0903262 class WuiContentBase(object): # pylint: disable=too-few-public-methods 263 263 """ 264 264 Base for the content classes. … … 382 382 return sHtml; 383 383 384 class WuiSingleContentBase(WuiContentBase): # pylint: disable= R0903384 class WuiSingleContentBase(WuiContentBase): # pylint: disable=too-few-public-methods 385 385 """ 386 386 Base for the content classes working on a single data object (oData). … … 391 391 392 392 393 class WuiFormContentBase(WuiSingleContentBase): # pylint: disable= R0903393 class WuiFormContentBase(WuiSingleContentBase): # pylint: disable=too-few-public-methods 394 394 """ 395 395 Base class for simple input form content classes (single data object). -
trunk/src/VBox/ValidationKit/testmanager/webui/wuihlpform.py
r76553 r79087 415 415 sExtraAttribs = sExtraAttribs); 416 416 417 def addListOfTestCaseArgs(self, sName, aoVariations, sLabel): # pylint: disable= R0915417 def addListOfTestCaseArgs(self, sName, aoVariations, sLabel): # pylint: disable=too-many-statements 418 418 """ 419 419 Adds a list of test case argument variations to the form. … … 646 646 return self._add(sHtml) 647 647 648 def addListOfTestGroupMembers(self, sName, aoTestGroupMembers, aoAllTestCases, sLabel, # pylint: disable= R0914648 def addListOfTestGroupMembers(self, sName, aoTestGroupMembers, aoAllTestCases, sLabel, # pylint: disable=too-many-locals 649 649 fReadOnly = True): 650 650 """ … … 763 763 u'</table>\n'); 764 764 765 def addListOfSchedGroupMembers(self, sName, aoSchedGroupMembers, aoAllTestGroups, # pylint: disable= R0914765 def addListOfSchedGroupMembers(self, sName, aoSchedGroupMembers, aoAllTestGroups, # pylint: disable=too-many-locals 766 766 sLabel, fReadOnly = True): 767 767 """ … … 862 862 u'</table>\n'); 863 863 864 def addListOfSchedGroupsForTestBox(self, sName, aoInSchedGroups, aoAllSchedGroups, sLabel, # pylint: disable= R0914864 def addListOfSchedGroupsForTestBox(self, sName, aoInSchedGroups, aoAllSchedGroups, sLabel, # pylint: disable=too-many-locals 865 865 fReadOnly = None): 866 866 # type: (str, TestBoxInSchedGroupDataEx, SchedGroupData, str, bool) -> str -
trunk/src/VBox/ValidationKit/testmanager/webui/wuihlpgraph.py
r76553 r79087 30 30 31 31 32 class WuiHlpGraphDataTable(object): # pylint: disable= R090332 class WuiHlpGraphDataTable(object): # pylint: disable=too-few-public-methods 33 33 """ 34 34 Data table container. 35 35 """ 36 36 37 class Row(object): # pylint: disable= R090337 class Row(object): # pylint: disable=too-few-public-methods 38 38 """A row.""" 39 39 def __init__(self, sGroup, aoValues, asValues = None): … … 59 59 60 60 61 class WuiHlpGraphDataTableEx(object): # pylint: disable= R090361 class WuiHlpGraphDataTableEx(object): # pylint: disable=too-few-public-methods 62 62 """ 63 63 Data container for an table/graph with optional error bars on the Y values. 64 64 """ 65 65 66 class DataSeries(object): # pylint: disable= R090366 class DataSeries(object): # pylint: disable=too-few-public-methods 67 67 """ 68 68 A data series. … … 100 100 # Dynamically choose implementation. 101 101 # 102 if True: # pylint: disable= W0125102 if True: # pylint: disable=using-constant-test 103 103 from testmanager.webui import wuihlpgraphgooglechart as GraphImplementation; 104 104 else: 105 105 try: 106 import matplotlib; # pylint: disable= W0611,F0401,import-error,wrong-import-order106 import matplotlib; # pylint: disable=unused-import,import-error,import-error,wrong-import-order 107 107 from testmanager.webui import wuihlpgraphmatplotlib as GraphImplementation; # pylint: disable=ungrouped-imports 108 108 except: 109 109 from testmanager.webui import wuihlpgraphsimple as GraphImplementation; 110 110 111 # pylint: disable= C0103111 # pylint: disable=invalid-name 112 112 WuiHlpBarGraph = GraphImplementation.WuiHlpBarGraph; 113 113 WuiHlpLineGraph = GraphImplementation.WuiHlpLineGraph; -
trunk/src/VBox/ValidationKit/testmanager/webui/wuihlpgraphgooglechart.py
r76553 r79087 68 68 return True; 69 69 70 def renderGraph(self): # pylint: disable= R091470 def renderGraph(self): # pylint: disable=too-many-locals 71 71 fSlideFilter = True; 72 72 -
trunk/src/VBox/ValidationKit/testmanager/webui/wuihlpgraphmatplotlib.py
r76553 r79087 37 37 from StringIO import StringIO as StringIO; # pylint: disable=import-error,no-name-in-module 38 38 39 import matplotlib; # pylint: disable= F040139 import matplotlib; # pylint: disable=import-error 40 40 matplotlib.use('Agg'); # Force backend. 41 import matplotlib.pyplot; # pylint: disable= F040142 from numpy import arange as numpy_arange; # pylint: disable= E0611,E0401,wrong-import-order41 import matplotlib.pyplot; # pylint: disable=import-error 42 from numpy import arange as numpy_arange; # pylint: disable=no-name-in-module,import-error,wrong-import-order 43 43 44 44 # Validation Kit imports. … … 64 64 """ 65 65 if self._fXkcdStyle and matplotlib.__version__ > '1.2.9': 66 matplotlib.pyplot.xkcd(); # pylint: disable= E110166 matplotlib.pyplot.xkcd(); # pylint: disable=no-member 67 67 matplotlib.rcParams.update({'font.size': self._cPtFont}); 68 68 … … 106 106 return None; 107 107 108 def renderGraph(self): # pylint: disable= R0914108 def renderGraph(self): # pylint: disable=too-many-locals 109 109 aoTable = self._oData.aoTable; 110 110 … … 198 198 return True; 199 199 200 def renderGraph(self): # pylint: disable= R0914200 def renderGraph(self): # pylint: disable=too-many-locals 201 201 aoSeries = self._oData.aoSeries; 202 202 … … 246 246 oSubPlot.grid(True, 'both', axis = 'x'); 247 247 248 if True: # pylint: disable= W0125248 if True: # pylint: disable=using-constant-test 249 249 # oSubPlot.axis('off'); 250 250 #oSubPlot.grid(True, 'major', axis = 'none'); … … 278 278 self.setFontSize(6); 279 279 280 def renderGraph(self): # pylint: disable= R0914280 def renderGraph(self): # pylint: disable=too-many-locals 281 281 assert len(self._oData.aoSeries) == 1; 282 282 oSeries = self._oData.aoSeries[0]; … … 288 288 289 289 oFigure = self._createFigure(); 290 from mpl_toolkits.axes_grid.axislines import SubplotZero; # pylint: disable= E0401290 from mpl_toolkits.axes_grid.axislines import SubplotZero; # pylint: disable=import-error 291 291 oAxis = SubplotZero(oFigure, 111); 292 292 oFigure.add_subplot(oAxis); -
trunk/src/VBox/ValidationKit/testmanager/webui/wuimain.py
r76553 r79087 717 717 # 718 718 719 def _actionGroupedResultsListing( #pylint: disable= R0914719 def _actionGroupedResultsListing( #pylint: disable=too-many-locals 720 720 self, 721 721 enmResultsGroupingType, -
trunk/src/VBox/ValidationKit/testmanager/webui/wuireport.py
r76553 r79087 416 416 oTable.addRow(oPeriod.sDesc, aiValues, asValues); 417 417 418 if True: # pylint: disable= W0125418 if True: # pylint: disable=using-constant-test 419 419 aiValues = []; 420 420 asValues = []; -
trunk/src/VBox/ValidationKit/testmanager/webui/wuitestresult.py
r76553 r79087 154 154 155 155 def _recursivelyGenerateEvents(self, oTestResult, sParentName, sLineage, iRow, 156 iFailure, oTestSet, iDepth): # pylint: disable= R0914156 iFailure, oTestSet, iDepth): # pylint: disable=too-many-locals 157 157 """ 158 158 Recursively generate event table rows for the result set. … … 442 442 443 443 444 def showTestCaseResultDetails(self, # pylint: disable= R0914,R0915444 def showTestCaseResultDetails(self, # pylint: disable=too-many-locals,too-many-statements 445 445 oTestResultTree, 446 446 oTestSet,
Note:
See TracChangeset
for help on using the changeset viewer.