summaryrefslogtreecommitdiffhomepage
path: root/tests/test_Config.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_Config.py')
-rw-r--r--tests/test_Config.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/test_Config.py b/tests/test_Config.py
index 1db2ad3a..495862c7 100644
--- a/tests/test_Config.py
+++ b/tests/test_Config.py
@@ -5,7 +5,8 @@ Test L{gbp.config.GbpOptionParser}
Test L{gbp.config.GbpOptionParserDebian}
"""
-from . import context
+from . import context # noqa: F401
+
def test_option_parser():
"""
@@ -20,6 +21,7 @@ def test_option_parser():
>>> c.add_boolean_config_file_option(option_name='track', dest='track')
"""
+
def test_option_parser_debian():
"""
Methods tested:
@@ -34,6 +36,7 @@ def test_option_parser_debian():
>>> c.add_config_file_option(option_name='builder', dest='builder', help='foo')
"""
+
def test_option_group():
"""
Methods tested:
@@ -47,11 +50,12 @@ def test_option_group():
>>> g.add_boolean_config_file_option(option_name='track', dest='track')
"""
+
def test_tristate():
"""
Methods tested:
- L{gbp.config.GbpOptionParser.add_config_file_option}
-
+
>>> import gbp.config
>>> c = gbp.config.GbpOptionParser('tristate')
>>> c.add_config_file_option(option_name="color", dest="color", type='tristate')
@@ -60,6 +64,7 @@ def test_tristate():
auto
"""
+
def test_filter():
"""
The filter option should always parse as a list
@@ -81,6 +86,7 @@ def test_filter():
>>> del os.environ['GBP_CONF_FILES']
"""
+
def test_filters():
"""
The filter can be given in plural form