2424from .settingcontrollers import MetadataController , ImportController , VariableController
2525
2626
27- class _WithListOperations (object ):
27+ class WithListOperations (object ):
2828
2929 def move_up (self , index ):
3030 if index > 0 :
@@ -72,7 +72,7 @@ def _index_difference(self, original_list, sorted_list):
7272 return index_difference
7373
7474
75- class VariableTableController (_TableController , _WithListOperations ):
75+ class VariableTableController (_TableController , WithListOperations ):
7676
7777 def __init__ (self , parent_controller , table ):
7878 _TableController .__init__ (self , parent_controller , table )
@@ -100,7 +100,7 @@ def move_up(self, index):
100100 if index == 0 :
101101 return False
102102 ctrl = self [index ]
103- _WithListOperations .move_up (self , index )
103+ WithListOperations .move_up (self , index )
104104 other = self [index ]
105105 self .mark_dirty ()
106106 RideVariableMovedUp (item = ctrl , other = other ).publish ()
@@ -109,7 +109,7 @@ def move_down(self, index):
109109 if index + 1 == len (self ._items ):
110110 return False
111111 ctrl = self [index ]
112- _WithListOperations .move_down (self , index )
112+ WithListOperations .move_down (self , index )
113113 other = self [index ]
114114 self .mark_dirty ()
115115 RideVariableMovedDown (item = ctrl , other = other ).publish ()
@@ -316,6 +316,7 @@ def _configure_controller(self, ctrl, config):
316316
317317
318318class TestCaseTableController (_MacroTable ):
319+ __test__ = False
319320 item_type = 'Test case'
320321 _controller_class = macrocontrollers .TestCaseController
321322
@@ -385,7 +386,7 @@ def restore_keyword_order(self, list):
385386 self ._table .keywords = keywords_temp
386387
387388
388- class ImportSettingsController (_TableController , _WithListOperations ):
389+ class ImportSettingsController (_TableController , WithListOperations ):
389390
390391 def __init__ (self , parent_controller , table , resource_file_controller_factory = None ):
391392 _TableController .__init__ (self , parent_controller , table )
@@ -415,18 +416,18 @@ def _items(self):
415416 def resource_file_controller_factory (self ):
416417 return self ._resource_file_controller_factory
417418
418- @overrides (_WithListOperations )
419+ @overrides (WithListOperations )
419420 def _swap (self , ind1 , ind2 ):
420421 imps = self ._import_controllers
421422 imps [ind1 ], imps [ind2 ] = imps [ind2 ], imps [ind1 ]
422- _WithListOperations ._swap (self , ind1 , ind2 )
423+ WithListOperations ._swap (self , ind1 , ind2 )
423424
424425 def remove_import_data (self , imp ):
425426 self .delete (self ._items .data .index (imp ))
426427
427428 def delete (self , index ):
428429 item = self [index ]
429- _WithListOperations .delete (self , index )
430+ WithListOperations .delete (self , index )
430431 self ._import_controllers .pop (index )
431432 item .publish_removed ()
432433 self .notify_imports_modified ()
@@ -469,7 +470,7 @@ def resource_import_modified(self, path):
469470 return self ._parent .resource_import_modified (path )
470471
471472
472- class MetadataListController (_TableController , _WithListOperations ):
473+ class MetadataListController (_TableController , WithListOperations ):
473474
474475 def __iter__ (self ):
475476 return iter (MetadataController (self , m ) for m in self ._items )
0 commit comments