def test_should_generate_sphinx_build_command_debug(self):
        self.project.set_property("sphinx_config_path", "docs/")
        self.project.set_property("sphinx_source_dir", "docs/")
        self.project.set_property("sphinx_output_dir", "docs/_build/")
        self.project.set_property("sphinx_doc_builder", 'JSONx')

        logger = Mock()
        logger.threshold = 1
        logger.DEBUG = 1

        sphinx_build_command = get_sphinx_build_command(self.project, logger, 'JSONx')

        self.assertEqual(sphinx_build_command,
                         ["sphinx", "-b", "JSONx", "-vvvv", "basedir/docs/", "basedir/docs/_build/"])
    def test_should_generate_sphinx_build_command_debug(self):
        self.project.set_property("sphinx_config_path", "docs/")
        self.project.set_property("sphinx_source_dir", "docs/")
        self.project.set_property("sphinx_output_dir", "docs/_build/")
        self.project.set_property("sphinx_doc_builder", 'JSONx')

        logger = Mock()
        logger.threshold = 1
        logger.DEBUG = 1

        sphinx_build_command = get_sphinx_build_command(
            self.project, logger, 'JSONx')

        self.assertEqual(sphinx_build_command, [
            "sphinx", "-b", "JSONx", "-vvvv", "basedir/docs/",
            "basedir/docs/_build/"
        ])
    def test_should_generate_sphinx_build_command_debug(self):
        self.project.set_property("sphinx_config_path", "docs/")
        self.project.set_property("sphinx_source_dir", "docs/")
        self.project.set_property("sphinx_output_dir", "docs/_build/")
        self.project.set_property("sphinx_doc_builder", "JSONx")

        logger = Mock()
        logger.level = 1
        logger.DEBUG = 1

        sphinx_build_command = get_sphinx_build_command(
            self.project, logger, "JSONx")

        self.assertEqual(sphinx_build_command, [
            ANY, "-b", "JSONx", "-vvvv",
            np(jp(self.project.basedir, "docs/")),
            np(jp(self.project.basedir, "docs/_build/"))
        ])