Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up some twilltestcase methods. #1742

Merged
merged 3 commits into from Feb 18, 2016
Merged

Conversation

davebx
Copy link
Contributor

@davebx davebx commented Feb 16, 2016

  • Remove twilltestcase.logout() from individual test methods.
  • Add an optional (default enabled) logout step during twilltestcase.login()

@davebx davebx added kind/refactoring cleanup or refactoring of existing code, no functional changes minor status/review labels Feb 16, 2016
@@ -1519,6 +1522,7 @@ def login( self, email='test@bx.psu.edu', password='testuser', username='admin-u
def logout( self ):
self.visit_url( "%s/user/logout" % self.url )
self.check_page_for_string( "You have been logged out" )
tc.browser.cj.clear()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that this addition (and the one in galaxy_logout()) are causing the Tool Shed test failures. The reason is that clearing the browser cookies will logout both the Galaxy and TS sessions.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a good point. I'll update it to clear TS xor galaxy.

@nsoranzo
Copy link
Member

👍

guerler added a commit that referenced this pull request Feb 18, 2016
Clean up some twilltestcase methods.
@guerler guerler merged commit 68e6312 into galaxyproject:dev Feb 18, 2016
@galaxybot
Copy link
Contributor

This PR was merged without a milestone attached.

@nsoranzo nsoranzo added this to the 16.04 milestone Apr 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/refactoring cleanup or refactoring of existing code, no functional changes minor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants