Skip to content

Regression

OmeroWeb.test.integration.test_scripts.TestScripts.test_script_ui_defaults (from pytest)

Failing for the past 1 build (Since #92 )
Took 24 sec.

Error Message

assert ('value="%s"' % 'Hello') in '<?xml version="1.0" encoding="iso-8859-1"?>\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n\n<html xmlns="http://www.w3.org/1999/xhtml">\n\n\n\n<head>\n    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />\n    <meta name="referrer" content="origin-when-crossorigin">\n\n    \n\t\t<link rel="stylesheet" href="/static/webgateway/css/reset.css?_5.26.1.dev0" type="text/css" />   \n\t\t<link rel="stylesheet" href="/static/webgateway/css/ome.body.css?_5.26.1.dev0" type="text/css" />\n\t\t<link rel="stylesheet" href="/static/webclient/css/dusty.css?_5.26.1.dev0" type="text/css" media="screen"/>\n    \n\n\n    <!-- extend here to add page title -->\n    <title>\n        \n    No Processor Available\n\n    </title>\n\n    \n        <!-- block for javascript <script> -->\n    \n\n    \n        <!-- block for extra head elements (not css or javascript) E.g. icon, meta tags -->\n        \n\n<link rel="icon" href="/favicon.ico" type="image/x-icon" />\n\n\n    \n\n</head>\n<body>\n\n\n\n<div style="padding:20px">\n\n    <h1>No Processor Available</h1>\n\n\n    <p>The script service cannot find a processor to run this script ID: 3490. You should contact your System Administrator.</p>\n\n    <div style="float:right; font-size: 120%;">\n        <a href="#" onClick="self.close()">Close Window</a>\n    </div>\n\n</div>\n\n\n\n\n    <!-- settings.BASE_INCLUDE_TEMPLATE included here -->\n    \n</body>\n</html>\n'

Stacktrace

self = <test_scripts.TestScripts object at 0x7fd9bd065850>

    def test_script_ui_defaults(self):
        """Test script UI html page includes default values."""
        script_id = self.upload_script()
        script_ui_url = reverse('script_ui', kwargs={'scriptId': script_id})
        rsp = get(self.django_client, script_ui_url)
        html = rsp.content.decode("utf-8")
        defaults = self.default_param_values
        expected_values = [
            defaults['Greeting'],
            str(defaults['Row_Count']),
            ','.join([str(c) for c in defaults['Channels']]),
            ','.join(defaults['Names'])
        ]
        for v in expected_values:
>           assert ('value="%s"' % v) in html
E           assert ('value="%s"' % 'Hello') in '<?xml version="1.0" encoding="iso-8859-1"?>\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n\n<html xmlns="http://www.w3.org/1999/xhtml">\n\n\n\n<head>\n    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />\n    <meta name="referrer" content="origin-when-crossorigin">\n\n    \n\t\t<link rel="stylesheet" href="/static/webgateway/css/reset.css?_5.26.1.dev0" type="text/css" />   \n\t\t<link rel="stylesheet" href="/static/webgateway/css/ome.body.css?_5.26.1.dev0" type="text/css" />\n\t\t<link rel="stylesheet" href="/static/webclient/css/dusty.css?_5.26.1.dev0" type="text/css" media="screen"/>\n    \n\n\n    <!-- extend here to add page title -->\n    <title>\n        \n    No Processor Available\n\n    </title>\n\n    \n        <!-- block for javascript <script> -->\n    \n\n    \n        <!-- block for extra head elements (not css or javascript) E.g. icon, meta tags -->\n        \n\n<link rel="icon" href="/favicon.ico" type="image/x-icon" />\n\n\n    \n\n</head>\n<body>\n\n\n\n<div style="padding:20px">\n\n    <h1>No Processor Available</h1>\n\n\n    <p>The script service cannot find a processor to run this script ID: 3490. You should contact your System Administrator.</p>\n\n    <div style="float:right; font-size: 120%;">\n        <a href="#" onClick="self.close()">Close Window</a>\n    </div>\n\n</div>\n\n\n\n\n    <!-- settings.BASE_INCLUDE_TEMPLATE included here -->\n    \n</body>\n</html>\n'

test/integration/test_scripts.py:99: AssertionError