mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Fix unit tests for that last commit.
This commit is contained in:
@@ -163,7 +163,7 @@ class DataToolParameterTestCase( BaseParameterTestCase ):
|
||||
self._param = None
|
||||
|
||||
def stub_active_datasets( self, *hdas ):
|
||||
self.test_history._active_datasets_children_and_roles = [ h for h in hdas if not h.deleted ]
|
||||
self.test_history._active_datasets_and_roles = [ h for h in hdas if not h.deleted ]
|
||||
|
||||
def _simple_field( self, **kwds ):
|
||||
return self.param.to_dict( trans=self.trans, **kwds )
|
||||
|
||||
@@ -199,7 +199,7 @@ class MockTrans( object ):
|
||||
self.app = app
|
||||
self.history = history
|
||||
self.user = None
|
||||
self.history._active_datasets_children_and_roles = [hda for hda in self.app.model.context.model_objects[ galaxy.model.HistoryDatasetAssociation ] if hda.active and hda.history == history]
|
||||
self.history._active_datasets_and_roles = [hda for hda in self.app.model.context.model_objects[ galaxy.model.HistoryDatasetAssociation ] if hda.active and hda.history == history]
|
||||
self.workflow_building_mode = False
|
||||
self.webapp = Bunch( name="galaxy" )
|
||||
self.sa_session = self.app.model.context
|
||||
|
||||
Reference in New Issue
Block a user