Skip to content

Commit

Permalink
setting usefull default values to the plugin, and removing not longer…
Browse files Browse the repository at this point in the history
… needed parameters from the tests
  • Loading branch information
Marcel Wolf committed Apr 19, 2015
1 parent df9b85b commit 2d53cec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 4 additions & 5 deletions src/main/python/pybuilder/plugins/python/sphinx_plugin.py
Expand Up @@ -38,11 +38,10 @@

DEFAULT_SPHINX_OUTPUT_DIR = SCAFFOLDING.DEFAULT_DOCS_DIRECTORY + "/_build/"

PROJECT_NAME = ""
SPHINX_DOC_AUTHOR = ""
SPHINX_DOC_BUILDER = ""
SPHINX_PROJECT_NAME = ""
SPHINX_PROJECT_VERSION = ""
SPHINX_DOC_AUTHOR = "doc_author"
SPHINX_DOC_BUILDER = "html"
SPHINX_PROJECT_NAME = "myproject"
SPHINX_PROJECT_VERSION = "0.1"


@init
Expand Down
2 changes: 0 additions & 2 deletions src/unittest/python/plugins/python/sphinx_plugin_tests.py
Expand Up @@ -70,8 +70,6 @@ def test_should_generate_sphinx_quickstart_command_with_project_properties(self)
project.set_property("sphinx_doc_author", "bar")
project.set_property("sphinx_project_name", "foo")
project.set_property("sphinx_project_version", "3")
project.set_property("project.name", "foo")
project.set_property("project.version", "3")
project.set_property("sphinx_source_dir", "docs/")

sphinx_quickstart_command = get_sphinx_quickstart_command(project)
Expand Down

0 comments on commit 2d53cec

Please sign in to comment.