1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/3c4600ee9bdf/ changeset: 3c4600ee9bdf user: carlfeberhard date: 2012-12-20 21:20:42 summary: functional tests, tags: fix test_005_add_tag_to_history to check for tag using get_tagging_elt_async; twilltestcase: add get_tags (get_tagging_elt_async) affected #: 2 files diff -r 5d4372b6e2855a69758716fc20440071d3f19fbf -r 3c4600ee9bdf65737f3c9e2bb77d6749102b98a3 test/base/twilltestcase.py --- a/test/base/twilltestcase.py +++ b/test/base/twilltestcase.py @@ -2474,3 +2474,6 @@ def add_tag( self, item_id, item_class, context, new_tag ): self.visit_url( "%s/tag/add_tag_async?item_id=%s&item_class=%s&context=%s&new_tag=%s" % \ ( self.url, item_id, item_class, context, new_tag ) ) + def get_tags( self, item_id, item_class ): + self.visit_url( "%s/tag/get_tagging_elt_async?item_id=%s&item_class=%s" % \ + ( self.url, item_id, item_class ) ) diff -r 5d4372b6e2855a69758716fc20440071d3f19fbf -r 3c4600ee9bdf65737f3c9e2bb77d6749102b98a3 test/functional/test_tags.py --- a/test/functional/test_tags.py +++ b/test/functional/test_tags.py @@ -33,6 +33,7 @@ assert admin_user is not None, 'Problem retrieving user with email "test@bx.psu.edu" from the database' global admin_user_private_role admin_user_private_role = get_private_role( admin_user ) + def test_005_add_tag_to_history( self ): """Testing adding a tag to a history""" # Logged in as admin_user @@ -45,7 +46,9 @@ 'History', 'history.mako', 'hello' ) - self.check_history_for_string( 'tags : {"hello"' ) + self.get_tags( self.security.encode_id( history1.id ), 'History' ) + self.check_page_for_string( 'tags : {"hello": ""}' ) + def test_010_add_tag_to_history_item( self ): """Testing adding a tag to a history item""" # Logged in as admin_user @@ -56,6 +59,7 @@ 'edit_attributes.mako', 'goodbye' ) self.check_hda_attribute_info( 'tags : {"goodbye"' ) + def test_999_reset_data_for_later_test_runs( self ): """Reseting data to enable later test runs to to be valid""" # logged in as admin_user 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.