commit/galaxy-central: jmchilton: Fix API test interactor to use unique usernames.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/15ca9a679522/ Changeset: 15ca9a679522 User: jmchilton Date: 2014-07-25 15:42:36 Summary: Fix API test interactor to use unique usernames. Should fixes API tests broken when validation of these changed recently. Affected #: 1 file diff -r 646c414e90515d78d99461e090815f1a01f18c72 -r 15ca9a6795225c9777b5f12f858e9a87754d8301 test/base/interactor.py --- a/test/base/interactor.py +++ b/test/base/interactor.py @@ -1,4 +1,5 @@ import os +import re from StringIO import StringIO from galaxy.tools.parameters import grouping from galaxy.tools import test @@ -330,10 +331,11 @@ try: test_user = [ user for user in all_users if user["email"] == email ][0] except IndexError: + username = re.sub('[^a-z-]', '--', email.lower()) data = dict( email=email, password='testuser', - username='admin-user', + username=username, ) test_user = self._post( 'users', data, key=admin_key ).json() return test_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.
participants (1)
-
commits-noreply@bitbucket.org