Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Bliss
python-handel
Commits
1bf1bb85
Commit
1bf1bb85
authored
Aug 30, 2017
by
Vincent Michel
Browse files
Remove DEFAULTS from config
parent
71af3f54
Changes
2
Hide whitespace changes
Inline
Side-by-side
handel/interface.py
View file @
1bf1bb85
...
...
@@ -366,4 +366,4 @@ def get_config(filename):
config
=
configparser
.
ConfigParser
(
comment_prefixes
=
[
'START'
,
'END'
,
'#'
,
'*****'
])
config
.
read
(
filename
)
return
{
key
:
dict
(
section
)
for
section
in
config
.
item
s
()}
return
{
section
:
dict
(
config
[
section
]
)
for
section
in
config
.
section
s
()}
tests/test_interface.py
View file @
1bf1bb85
...
...
@@ -468,3 +468,4 @@ def test_get_config(interface):
filename
=
interface
.
get_config_files
(
'.'
)[
0
]
d
=
interface
.
get_config
(
filename
)
assert
d
[
'detector definitions'
][
'alias'
]
==
'detector1'
assert
'DEFAULT'
not
in
d
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