Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Kaylee deSoto
bilby_pipe
Commits
ae1950b5
Commit
ae1950b5
authored
Oct 14, 2018
by
Colm Talbot
Browse files
add section test
parent
5f1c1cca
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/summary_test.py
0 → 100644
View file @
ae1950b5
import
unittest
import
bilby_pipe
class
TestSummaryGenerator
(
unittest
.
TestCase
):
def
setUp
(
self
):
self
.
header
=
bilby_pipe
.
summary
.
header
self
.
section_template
=
bilby_pipe
.
summary
.
section_template
self
.
footer
=
bilby_pipe
.
summary
.
footer
def
tearDown
(
self
):
del
self
.
header
del
self
.
section_template
del
self
.
footer
def
test_get_section
(
self
):
params
=
dict
(
title
=
'test'
,
corner_file_path
=
'test'
)
self
.
assertEqual
(
self
.
section_template
.
format
(
**
params
),
bilby_pipe
.
summary
.
get_section
(
**
params
))
if
__name__
==
'__main__'
:
unittest
.
main
()
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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