Skip to content

Commit

Permalink
Merge pull request #903 from sphinx-contrib/test-report-builder-init
Browse files Browse the repository at this point in the history
tests: add unit test to validate report builder initialization
  • Loading branch information
jdknight authored Mar 3, 2024
2 parents 0d293f1 + 02837fc commit 82a2d13
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 82a2d13

Please sign in to comment.