from tool_shed.base.twilltestcase import ShedTwillTestCase, common, os, logging import tool_shed.base.test_db_util as test_db_util column_repository_name = 'column_maker_0080' column_repository_description = "Add column" column_repository_long_description = "Compute an expression on every row" convert_repository_name = 'convert_chars_0080' convert_repository_description = "Convert delimiters" convert_repository_long_description = "Convert delimiters to tab" category_name = 'Test 0080 Advanced Circular Dependencies' category_description = 'Test circular dependency features' log = logging.getLogger(__name__) running_standalone = False class TestRepositoryDependencies(ShedTwillTestCase): '''Testing uninstalling and reinstalling repository dependencies, and setting tool panel sections.''' def test_0000_create_or_login_admin_user(self): """Create necessary user accounts and login as an admin user.""" self.galaxy_logout() self.galaxy_login(email=common.admin_email, username=common.admin_username) galaxy_admin_user = test_db_util.get_galaxy_user(common.admin_email) assert galaxy_admin_user is not None, 'Problem retrieving user with email %s from the database' % common.admin_email galaxy_admin_user_private_role = test_db_util.get_galaxy_private_role( galaxy_admin_user) self.logout()
from tool_shed.base.twilltestcase import ShedTwillTestCase, common, os, logging import tool_shed.base.test_db_util as test_db_util column_repository_name = 'column_maker_1085' column_repository_description = "Add column" column_repository_long_description = "Compute an expression on every row" convert_repository_name = 'convert_chars_1085' convert_repository_description = "Convert delimiters" convert_repository_long_description = "Convert delimiters to tab" category_name = 'Test 1085 Advanced Circular Dependencies' category_description = 'Test circular dependency features' log = logging.getLogger( __name__ ) class TestRepositoryDependencies( ShedTwillTestCase ): '''Testing the behavior of repository dependencies with tool panel sections.''' def test_0000_create_or_login_admin_user( self ): """Create necessary user accounts and login as an admin user.""" self.galaxy_logout() self.galaxy_login( email=common.admin_email, username=common.admin_username ) galaxy_admin_user = test_db_util.get_galaxy_user( common.admin_email ) assert galaxy_admin_user is not None, 'Problem retrieving user with email %s from the database' % common.admin_email galaxy_admin_user_private_role = test_db_util.get_galaxy_private_role( galaxy_admin_user ) self.logout() self.login( email=common.test_user_1_email, username=common.test_user_1_name ) test_user_1 = test_db_util.get_user( common.test_user_1_email ) assert test_user_1 is not None, 'Problem retrieving user with email %s from the database' % test_user_1_email test_user_1_private_role = test_db_util.get_private_role( test_user_1 ) self.logout()