Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fact_pdf_report
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-depend
fact_pdf_report
Commits
1292b373
Commit
1292b373
authored
Dec 14, 2018
by
Peter Weidenbach
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pep8 errors
parent
f30364a4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
pdf_generator.py
src/pdf_generator.py
+2
-1
test_main.py
src/tests/acceptance/test_main.py
+2
-2
No files found.
src/pdf_generator.py
View file @
1292b373
...
...
@@ -4,7 +4,7 @@ This Template has a separate console and file logging.
File logging-level 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
-> "Logging"
-> "Logging"
---> "logFile"
---> "logLevel"
Console logging is INFO or DEBUG according to debug debug_flag.
...
...
@@ -25,6 +25,7 @@ PROGRAM_DESCRIPTION = 'Generates a analysis PDF report'
STANDARD_CONF_FILE
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
+
'/config/main.cfg'
def
_setup_argparser
():
parser
=
argparse
.
ArgumentParser
(
description
=
'{} - {}'
.
format
(
PROGRAM_NAME
,
PROGRAM_DESCRIPTION
))
parser
.
add_argument
(
'-V'
,
'--version'
,
action
=
'version'
,
version
=
'{} {}'
.
format
(
PROGRAM_NAME
,
PROGRAM_VERSION
))
...
...
src/tests/acceptance/test_main.py
View file @
1292b373
...
...
@@ -4,8 +4,9 @@ import os
SRC_DIR
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
+
'/../../pdf_generator.py'
def
test_main_program
():
command_line
=
SRC_DIR
+
' -V'
output
,
return_code
=
execute_shell_command_get_return_code
(
command_line
)
print
(
output
)
assert
return_code
==
0
\ No newline at end of file
assert
return_code
==
0
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment