commit/galaxy-central: natefoo: Bugfix for tool tests without attributes.
1 new changeset in galaxy-central: http://bitbucket.org/galaxy/galaxy-central/changeset/2790c2083719/ changeset: 2790c2083719 user: natefoo date: 2011-09-02 16:16:07 summary: Bugfix for tool tests without attributes. affected #: 1 file (15 bytes) --- a/test/base/twilltestcase.py Fri Sep 02 08:57:55 2011 -0400 +++ b/test/base/twilltestcase.py Fri Sep 02 10:16:07 2011 -0400 @@ -655,10 +655,9 @@ self.home() self.visit_page( "display?hid=" + hid ) data = self.last_page() - assert_list = attributes["assert_list"] - if assert_list is not None: + if attributes is not None and attributes.get( "assert_list", None ) is not None: try: - verify_assertions(data, assert_list) + verify_assertions(data, attributes["assert_list"]) except AssertionError, err: errmsg = 'History item %s different than expected\n' % (hid) errmsg += str( err ) Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket