Example #1
0
    def test_should_generate_sphinx_quickstart_command_with_project_properties(self):
        self.project.set_property("sphinx_doc_author", "bar")
        self.project.set_property("sphinx_project_name", "foo")
        self.project.set_property("sphinx_project_version", "3")
        self.project.set_property("sphinx_source_dir", "docs/")

        sphinx_quickstart_command = get_sphinx_quickstart_command(self.project)

        self.assertEqual(sphinx_quickstart_command,
                         ["sphinx.quickstart", "-q", "-p", "foo", "-a", "bar", "-v", "3", "basedir/docs/"])
    def test_should_generate_sphinx_quickstart_command_with_project_properties(self):
        self.project.set_property("sphinx_doc_author", "bar")
        self.project.set_property("sphinx_project_name", "foo")
        self.project.set_property("sphinx_project_version", "3")
        self.project.set_property("sphinx_source_dir", "docs/")

        sphinx_quickstart_command = get_sphinx_quickstart_command(self.project)

        self.assertEqual(sphinx_quickstart_command,
                         "sphinx-quickstart -q -p 'foo' -a 'bar' -v 3 basedir/docs/")
Example #3
0
    def test_should_generate_sphinx_quickstart_command_with_project_properties(
            self):
        self.project.set_property("sphinx_doc_author", "bar")
        self.project.set_property("sphinx_project_name", "foo")
        self.project.set_property("sphinx_project_version", "3")
        self.project.set_property("sphinx_source_dir", "docs/")

        sphinx_quickstart_command = get_sphinx_quickstart_command(self.project)

        self.assertEqual(
            sphinx_quickstart_command,
            "sphinx-quickstart -q -p 'foo' -a 'bar' -v 3 basedir/docs/")
Example #4
0
    def test_should_generate_sphinx_quickstart_command_with_project_properties(
            self):
        self.project.set_property("sphinx_doc_author", "bar")
        self.project.set_property("sphinx_project_name", "foo")
        self.project.set_property("sphinx_project_version", "3")
        self.project.set_property("sphinx_source_dir", "docs/")

        sphinx_quickstart_command = get_sphinx_quickstart_command(self.project)

        self.assertEqual(sphinx_quickstart_command, [
            "sphinx.quickstart", "-q", "-p", "foo", "-a", "bar", "-v", "3",
            "basedir/docs/"
        ])