summaryrefslogtreecommitdiffstats
path: root/keystone/test.py
diff options
context:
space:
mode:
authorDolph Mathews <dolph.mathews@gmail.com>2012-11-13 10:22:01 -0600
committerDolph Mathews <dolph.mathews@gmail.com>2012-11-13 16:17:04 -0600
commit36c880eb2843b59eca57c9dcad30a787f184bdc9 (patch)
tree269166e1128689b06132eaeae730d3aa0c98335c /keystone/test.py
parent001f708e7d9ffc69c80f823e7ab5f79325cc8a40 (diff)
downloadkeystone-36c880eb2843b59eca57c9dcad30a787f184bdc9.tar.gz
keystone-36c880eb2843b59eca57c9dcad30a787f184bdc9.tar.xz
keystone-36c880eb2843b59eca57c9dcad30a787f184bdc9.zip
Reduce total number of fixtures
Fixtures are created before every test, so each fixture adds a considerable amount of overhead to the overall test suite. This patch attempts to eliminate fixtures utilized by only a few tests in favor of re-cycling as many fixtures as possible. As a result, a few tests are refactored to depend on different fixtures. Change-Id: Idd4dcef5e38e304d19110c61886887fb64b4d658
Diffstat (limited to 'keystone/test.py')
-rw-r--r--keystone/test.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/keystone/test.py b/keystone/test.py
index 68631ee4..46056095 100644
--- a/keystone/test.py
+++ b/keystone/test.py
@@ -216,11 +216,6 @@ class TestCase(NoModule, unittest.TestCase):
"""
# TODO(termie): doing something from json, probably based on Django's
# loaddata will be much preferred.
- if hasattr(self, 'catalog_api'):
- for service in fixtures.SERVICES:
- rv = self.catalog_api.create_service(service['id'], service)
- setattr(self, 'service_%s' % service['id'], rv)
-
if hasattr(self, 'identity_api'):
for tenant in fixtures.TENANTS:
rv = self.identity_api.create_tenant(tenant['id'], tenant)