Skip to content

Commit e0a6716

Browse files
committed
yapf
1 parent f5b54ea commit e0a6716

12 files changed

+15
-0
lines changed

servers/cromwell/jobs/controllers/utils/auth.py

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55

66
def requires_auth(fn):
7+
78
def wrapper(*args, **kwargs):
89
auth_token = request.headers.get('Authentication')
910
auth = _get_user_auth() if not current_app.config['use_caas'] else None

servers/cromwell/jobs/test/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66

77
class BaseTestCase(TestCase):
8+
89
def create_app(self):
910
logging.getLogger('connexion.operation').setLevel('ERROR')
1011
app = connexion.App(__name__, specification_dir='../swagger/')

servers/cromwell/jobs/test/test_auth_utils.py

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77

88
class TestAuthUtils(BaseTestCase):
9+
910
def setUp(self):
1011
self.base_url = 'https://test-cromwell.org'
1112

servers/cromwell/jobs/test/test_job_statuses.py

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99

1010
class TestJobStatuses(BaseTestCase):
11+
1112
def test_cromwell_execution_status_converts_correctly(self):
1213
for key, status in job_statuses.ApiStatus.__dict__.items():
1314
if not key.startswith('__'):

servers/cromwell/jobs/test/test_jobs_controller.py

+1
Original file line numberDiff line numberDiff line change
@@ -984,6 +984,7 @@ def test_query_jobs_returns_200(self, mock_request):
984984
985985
Query jobs by various filter criteria. Returned jobs are ordered from newest to oldest submission time.
986986
"""
987+
987988
def _request_callback(request, context):
988989
context.status_code = 200
989990
return {'results': [], 'totalResultsCount': 0}

servers/cromwell/jobs/test/test_task_statuses.py

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def test_unrecognized_task_status_causes_exception(self):
3333
task_statuses.cromwell_execution_to_api('Not a valid task status')
3434

3535
def test_scattered_task_status(self):
36+
3637
def failed_scattered_task():
3738
return [
3839
Shard(execution_status='Failed'),

servers/dsub/jobs/test/base_google_test_cases.py

+2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313

1414

1515
class BaseGoogleTestCases:
16+
1617
class BaseGoogleTestCase(BaseTestCases.JobsControllerTestCase):
18+
1719
@classmethod
1820
def setUpClass(cls):
1921
super(BaseGoogleTestCases.BaseGoogleTestCase, cls).setUpClass()

servers/dsub/jobs/test/base_test_cases.py

+3
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,17 @@
2929

3030

3131
class BaseTestCases:
32+
3233
class BaseTestCase(flask_testing.TestCase):
34+
3335
def assert_status(self, response, want, desc=None):
3436
if not desc:
3537
desc = 'Response body is : ' + response.data.decode('utf-8')
3638
super(BaseTestCases.BaseTestCase,
3739
self).assertStatus(response, want, desc)
3840

3941
class JobsControllerTestCase(BaseTestCase):
42+
4043
@classmethod
4144
def setUpClass(cls):
4245
cls.testing_root = None

servers/dsub/jobs/test/test_jobs_controller_google.py

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
class TestJobsControllerGoogle(BaseGoogleTestCases.BaseGoogleTestCase):
77
""" JobsController integration tests for the google provider """
8+
89
def create_app(self):
910
app = super(TestJobsControllerGoogle, self).create_app()
1011
app.config.update({

servers/dsub/jobs/test/test_jobs_controller_google_v2.py

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
class TestJobsControllerGoogleV2(BaseGoogleTestCases.BaseGoogleTestCase):
77
""" JobsController integration tests for the google v2 provider """
8+
89
def create_app(self):
910
app = super(TestJobsControllerGoogleV2, self).create_app()
1011
app.config.update({

servers/dsub/jobs/test/test_jobs_controller_local.py

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
class TestJobsControllerLocal(BaseTestCases.JobsControllerTestCase):
2020
""" JobsController integration tests for local provider """
21+
2122
@classmethod
2223
def setUpClass(cls):
2324
super(TestJobsControllerLocal, cls).setUpClass()

servers/jm_utils/jm_utils/test/test_page_tokens.py

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
class TestJmUtils(unittest.TestCase):
1313
""" jm_utils unit tests """
14+
1415
def test_encode_decode_offset(self):
1516
encoded = page_tokens.encode_offset(12)
1617
decoded = page_tokens.decode_offset(encoded)

0 commit comments

Comments
 (0)