summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2014-10-09 23:27:15 +0000
committerGerrit Code Review <review@openstack.org>2014-10-09 23:27:15 +0000
commit3a3e3c8ddac45d541621104581e6d3aa10c3834c (patch)
tree93e6693f6041d58449bc3d437a8bae5b9c266c89
parent73571418d21a521cdfff652836e5014dc272c305 (diff)
parent883c865908153917d5fd10635a75e7f032186c00 (diff)
downloadpbr-3a3e3c8ddac45d541621104581e6d3aa10c3834c.tar.gz
Merge "tests: factorize has_opt handling"
-rw-r--r--pbr/tests/test_setup.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/pbr/tests/test_setup.py b/pbr/tests/test_setup.py
index 44436df..8310e14 100644
--- a/pbr/tests/test_setup.py
+++ b/pbr/tests/test_setup.py
@@ -214,11 +214,11 @@ class BuildSphinxTest(base.BaseTestCase):
"fake_package", [("fake_module.py", b"")])
self.useFixture(pkg_fixture)
self.useFixture(base.DiveDir(pkg_fixture.base))
-
- def test_build_doc(self):
if self.has_opt:
self.distr.command_options["pbr"] = {
"autodoc_index_modules": ('setup.cfg', self.autodoc)}
+
+ def test_build_doc(self):
build_doc = packaging.LocalBuildDoc(self.distr)
build_doc.run()
@@ -229,10 +229,6 @@ class BuildSphinxTest(base.BaseTestCase):
"api/fake_package.fake_module.rst") == self.has_autodoc)
def test_builders_config(self):
- if self.has_opt:
- self.distr.command_options["pbr"] = {
- "autodoc_index_modules": ('setup.cfg', self.autodoc)}
-
build_doc = packaging.LocalBuildDoc(self.distr)
build_doc.finalize_options()