Fix unit tests for that last commit.

This commit is contained in:
John Chilton
2017-02-16 13:18:25 -05:00
parent ac191f5f2a
commit eb42d130d3
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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 )
+1 -1
View File
@@ -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