deb-designate/functionaltests/common/base.py
Paul Glass 8273819a09 Fix exceptions on pep8 check due to missing tempest.conf
* Don't read the test config when the config module is imported
* Don't instantiate clients when the client module is imported

Change-Id: Ie56ad28c1bd1911eb8fb964cf7384a71745f8606
2015-05-28 19:52:53 +00:00

31 lines
919 B
Python

"""
Copyright 2015 Rackspace
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import tempest_lib.base
from functionaltests.common.config import read_config
class BaseDesignateTest(tempest_lib.base.BaseTestCase):
def __init__(self, *args, **kwargs):
super(BaseDesignateTest, self).__init__(*args, **kwargs)
@classmethod
def setUpClass(cls):
super(BaseDesignateTest, cls).setUpClass()
read_config()