Fix "wrap functions with 2 blank lines" pep8 check
Now gates are requires this pep8 rule as mandatory so until it'll be fixed merge is blocked. Change-Id: I0072536f3404b36135be43a59b801fe5db13413b
This commit is contained in:
parent
5739779be6
commit
97e3534dd4
@ -266,4 +266,5 @@ class QuietLogger(object):
|
||||
def __exit__(self, exc_type, exc_value, exc_tb):
|
||||
logging.StreamHandler().setLevel(self.level)
|
||||
|
||||
|
||||
__all__ = ['logwrap', 'QuietLogger', 'logger']
|
||||
|
@ -31,4 +31,5 @@ class Client(object):
|
||||
|
||||
self.ostf = ostf_client.OSTFClient(ostf_clnt)
|
||||
|
||||
|
||||
__all__ = ['Client']
|
||||
|
@ -54,5 +54,6 @@ def execute():
|
||||
"{cluster.id}",
|
||||
release_str))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
execute()
|
||||
|
@ -24,6 +24,7 @@ def get_var_as_bool(name, default):
|
||||
value = os.environ.get(name, '')
|
||||
return _boolean_states.get(value.lower(), default)
|
||||
|
||||
|
||||
# Default timezone for clear logging
|
||||
TIME_ZONE = 'UTC'
|
||||
|
||||
@ -49,6 +50,7 @@ INTERFACES_DICT = {
|
||||
def iface_alias(interface_name):
|
||||
return INTERFACES_DICT[interface_name]
|
||||
|
||||
|
||||
ISO_PATH = os.environ.get('ISO_PATH')
|
||||
LOGS_DIR = os.environ.get('LOGS_DIR', os.getcwd())
|
||||
# cdrom or usb
|
||||
|
@ -276,5 +276,6 @@ def main():
|
||||
LOG.info('The results of Tempest tests have been uploaded.')
|
||||
LOG.info('Report URL: {0}'.format(test_plan['url']))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
@ -437,5 +437,6 @@ def main():
|
||||
tests=tests_descriptions,
|
||||
check_all_sections=not options.check_one_section)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
@ -80,6 +80,7 @@ class TestCaseRepository(set):
|
||||
raise AttributeError("'TestCaseRepository' object has no attribute "
|
||||
" 'update'")
|
||||
|
||||
|
||||
Repository = TestCaseRepository()
|
||||
|
||||
|
||||
|
@ -207,5 +207,6 @@ def main():
|
||||
|
||||
write_test_vars(SNAPSHOT_OUTPUT_FILE, test_variables)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
@ -885,5 +885,6 @@ class FuelLogs(object):
|
||||
|
||||
##############################################################################
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
IO.main()
|
||||
|
Loading…
Reference in New Issue
Block a user