From 3bfec1d7a93d2d63b4f9f790b4704bd814d2de90 Mon Sep 17 00:00:00 2001 From: Jake Moshenko Date: Mon, 24 Aug 2015 11:59:46 -0400 Subject: [PATCH] Style fixes. --- test/specs.py | 9 +++------ test/test_endpoint_security.py | 10 +++++----- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/test/specs.py b/test/specs.py index 3e5b4e585..a723d7ce9 100644 --- a/test/specs.py +++ b/test/specs.py @@ -143,14 +143,11 @@ def build_index_specs(): IndexTestSpec(url_for('v1.get_image_json', image_id=FAKE_IMAGE_ID), ORG_REPO, 403, 403, 404, 404), - IndexTestSpec(url_for('v1.get_image_ancestry', - image_id=FAKE_IMAGE_ID), + IndexTestSpec(url_for('v1.get_image_ancestry', image_id=FAKE_IMAGE_ID), PUBLIC_REPO, 404, 404, 404, 404), - IndexTestSpec(url_for('v1.get_image_ancestry', - image_id=FAKE_IMAGE_ID), + IndexTestSpec(url_for('v1.get_image_ancestry', image_id=FAKE_IMAGE_ID), PRIVATE_REPO, 403, 403, 404, 404), - IndexTestSpec(url_for('v1.get_image_ancestry', - image_id=FAKE_IMAGE_ID), + IndexTestSpec(url_for('v1.get_image_ancestry', image_id=FAKE_IMAGE_ID), ORG_REPO, 403, 403, 404, 404), IndexTestSpec(url_for('v1.put_image_json', image_id=FAKE_IMAGE_ID), diff --git a/test/test_endpoint_security.py b/test/test_endpoint_security.py index 27b393cd7..ff0479116 100644 --- a/test/test_endpoint_security.py +++ b/test/test_endpoint_security.py @@ -16,10 +16,10 @@ ADMIN_ACCESS_USER = 'devtable' class EndpointTestCase(unittest.TestCase): - def setUp(self): + def setUp(self): setup_database_for_testing(self) - def tearDown(self): + def tearDown(self): finished_database_for_testing(self) @@ -68,13 +68,13 @@ class _SpecTestBuilder(type): expected_status = getattr(test_spec, attrs['result_attr']) test = _SpecTestBuilder._test_generator(url, expected_status, - open_kwargs, - session_vars) + open_kwargs, + session_vars) test_name_url = url.replace('/', '_').replace('-', '_') sess_repo = str(test_spec.sess_repo).replace('/', '_') test_name = 'test_%s%s_%s' % (open_kwargs['method'].lower(), - test_name_url, sess_repo) + test_name_url, sess_repo) attrs[test_name] = test return type(name, bases, attrs)