Commit 1292b373 by Peter Weidenbach

pep8 errors

parent f30364a4
...@@ -4,7 +4,7 @@ This Template has a separate console and file logging. ...@@ -4,7 +4,7 @@ This Template has a separate console and file logging.
File logging-level can be changed by -L parameter. File logging-level can be changed by -L parameter.
Log file can be changed by -l parameter. Log file can be changed by -l parameter.
Standard values for logging can be set in the config file Standard values for logging can be set in the config file
-> "Logging" -> "Logging"
---> "logFile" ---> "logFile"
---> "logLevel" ---> "logLevel"
Console logging is INFO or DEBUG according to debug debug_flag. Console logging is INFO or DEBUG according to debug debug_flag.
...@@ -25,6 +25,7 @@ PROGRAM_DESCRIPTION = 'Generates a analysis PDF report' ...@@ -25,6 +25,7 @@ PROGRAM_DESCRIPTION = 'Generates a analysis PDF report'
STANDARD_CONF_FILE = os.path.dirname(os.path.abspath(__file__)) + '/config/main.cfg' STANDARD_CONF_FILE = os.path.dirname(os.path.abspath(__file__)) + '/config/main.cfg'
def _setup_argparser(): def _setup_argparser():
parser = argparse.ArgumentParser(description='{} - {}'.format(PROGRAM_NAME, PROGRAM_DESCRIPTION)) parser = argparse.ArgumentParser(description='{} - {}'.format(PROGRAM_NAME, PROGRAM_DESCRIPTION))
parser.add_argument('-V', '--version', action='version', version='{} {}'.format(PROGRAM_NAME, PROGRAM_VERSION)) parser.add_argument('-V', '--version', action='version', version='{} {}'.format(PROGRAM_NAME, PROGRAM_VERSION))
......
...@@ -4,8 +4,9 @@ import os ...@@ -4,8 +4,9 @@ import os
SRC_DIR = os.path.dirname(os.path.abspath(__file__)) + '/../../pdf_generator.py' SRC_DIR = os.path.dirname(os.path.abspath(__file__)) + '/../../pdf_generator.py'
def test_main_program(): def test_main_program():
command_line = SRC_DIR + ' -V' command_line = SRC_DIR + ' -V'
output, return_code = execute_shell_command_get_return_code(command_line) output, return_code = execute_shell_command_get_return_code(command_line)
print(output) print(output)
assert return_code == 0 assert return_code == 0
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment