mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Testing: fix failing unit tests that were recently added
This commit is contained in:
@@ -15,7 +15,7 @@ import imp
|
||||
import pkg_resources
|
||||
pkg_resources.require( 'MarkupSafe' )
|
||||
pkg_resources.require( 'Mako' )
|
||||
import mako
|
||||
import mako.lookup
|
||||
|
||||
from galaxy import util
|
||||
from galaxy.util import odict
|
||||
@@ -590,12 +590,12 @@ class PageServingPluginManager( PluginManager ):
|
||||
:returns: rendered template
|
||||
"""
|
||||
if 'plugin_path' not in kwargs:
|
||||
kwargs[ 'plugin_path'] = os.path.abspath( plugin.path )
|
||||
kwargs[ 'plugin_path' ] = os.path.abspath( plugin.path )
|
||||
|
||||
plugin_type = plugin.config["plugin_type"]
|
||||
if plugin_type == "interactive_environment":
|
||||
plugin_config = plugin.get( 'config', {} )
|
||||
if plugin_config.get( 'plugin_type', 'visualization' ) == "interactive_environment":
|
||||
request = InteractiveEnviornmentRequest(trans, plugin)
|
||||
kwargs["ie_request"] = request
|
||||
kwargs[ "ie_request" ] = request
|
||||
|
||||
# defined here to be overridden
|
||||
return trans.fill_template( template_filename, template_lookup=plugin.template_lookup, **kwargs )
|
||||
|
||||
@@ -459,7 +459,7 @@ class HistoryFiltersTestCase( BaseTestCase ):
|
||||
self.assertEqual( len( filters ), 3 )
|
||||
|
||||
self.log( 'values should be parsed' )
|
||||
self.assertEqual( filters[1].right.value, True )
|
||||
self.assertTrue( isinstance( filters[1].right, sqlalchemy.sql.elements.True_ ) )
|
||||
|
||||
def test_parse_filters_invalid_filters( self ):
|
||||
self.log( 'should error on non-column attr')
|
||||
|
||||
Reference in New Issue
Block a user