Skip to content

Commit

Permalink
tests: add unit test to validate report builder initialization
Browse files Browse the repository at this point in the history
Defines a simple unit test that requests the creation of a report
builder. This is to help ensure that this mocked builder has no issues
in loading with the active Sphinx version.

Signed-off-by: James Knight <james.d.knight@live.com>
  • Loading branch information
jdknight committed Mar 3, 2024
1 parent 2f2a094 commit 02837fc
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/unit-tests/test_report_builder.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# SPDX-License-Identifier: BSD-2-Clause
# Copyright Sphinx Confluence Builder Contributors (AUTHORS)

from sphinxcontrib.confluencebuilder.reportbuilder import ConfluenceReportBuilder
from tests.lib.testcase import ConfluenceTestCase
from tests.lib.testcase import setup_builder


class TestReportBuilder(ConfluenceTestCase):
@setup_builder(ConfluenceReportBuilder.name)
def test_report_builder(self):
# sanity check that this builder can be prepared
with self.prepare(self.datasets / 'minimal') as app:
self.assertIsInstance(app.builder, ConfluenceReportBuilder)

0 comments on commit 02837fc

Please sign in to comment.