mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-24 12:13:33 +08:00
Fix all E201 and E202 style errors
using the following command: ``` autopep8 -i -r --exclude $(sed -e 's|^|./|' -e 's|/$||' .ci/flake8_blacklist.txt | paste -sd,) --select E201,E202 . ```
This commit is contained in:
committed by
Nicola Soranzo
parent
008a1d849c
commit
21b44bf348
@@ -335,7 +335,7 @@ class SeleniumSessionDatasetCollectionPopulator(populators.BaseDatasetCollection
|
||||
self.dataset_populator = SeleniumSessionDatasetPopulator(selenium_test_case)
|
||||
|
||||
def _create_collection(self, payload):
|
||||
create_response = self._post( "dataset_collections", data=payload )
|
||||
create_response = self._post("dataset_collections", data=payload)
|
||||
return create_response
|
||||
|
||||
|
||||
@@ -360,4 +360,4 @@ class SeleniumSessionWorkflowPopulator(populators.BaseWorkflowPopulator, Seleniu
|
||||
|
||||
def upload_yaml_workflow(self, has_yaml, **kwds):
|
||||
workflow = convert_and_import_workflow(has_yaml, galaxy_interface=self, **kwds)
|
||||
return workflow[ "id" ]
|
||||
return workflow["id"]
|
||||
|
||||
@@ -26,7 +26,7 @@ class LoginTestCase(SeleniumTestCase):
|
||||
|
||||
@selenium_test
|
||||
def test_invalid_passwords(self):
|
||||
bad_passwords = [ '1234', '', '; SELECT * FROM galaxy_user' ]
|
||||
bad_passwords = ['1234', '', '; SELECT * FROM galaxy_user']
|
||||
for bad_password in bad_passwords:
|
||||
self.home()
|
||||
self.submit_login(self._get_random_email(), password=bad_password)
|
||||
|
||||
@@ -58,7 +58,7 @@ class RegistrationTestCase(SeleniumTestCase):
|
||||
|
||||
@selenium_test
|
||||
def test_bad_emails(self):
|
||||
bad_emails = [ 'bob', 'bob@', 'bob@idontwanttocleanup', 'bob.cantmakeme' ]
|
||||
bad_emails = ['bob', 'bob@', 'bob@idontwanttocleanup', 'bob.cantmakeme']
|
||||
good_email = self._get_random_email()
|
||||
password = DEFAULT_PASSWORD
|
||||
confirm = password
|
||||
|
||||
Reference in New Issue
Block a user