Skip to content

Commit

Permalink
tests: adding use of singleconfluence in the validation set
Browse files Browse the repository at this point in the history
Adds a run of the `singleconfluence` builder into the validation set.
This can be helpful to verify the use of this builders during
development, as well as present to users who want to verify capabilities
and report observed issues that may have been overlooked.

Signed-off-by: James Knight <[email protected]>
  • Loading branch information
jdknight committed Oct 12, 2024
1 parent 80d0f33 commit 4a5fa4a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/test_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,20 @@ def test_230_markdown(self):
def test_240_extensions(self):
self._test_extensions('v2')

def test_310_singleconfluence(self):
config = self.config.clone()
config['confluence_editor'] = 'v1'
config['confluence_sourcelink'] = None
config['confluence_title_overrides'] = {
'index': 'Single Confluence',
}

dataset = self.datasets / 'restructuredtext'
doc_dir = prepare_dirs('validation-set-rst-singleconfluence')

build_sphinx(dataset, config=config, out_dir=doc_dir,
builder='singleconfluence')

def _test_restructuredtext(self, editor):
config = self._prepare_editor(editor)
config['confluence_sourcelink']['container'] += 'restructuredtext/'
Expand Down Expand Up @@ -313,6 +327,9 @@ def navdocs_transform(builder, docnames):
builder.state.register_title(
'_validation_prev', 'Markdown Table (Fabric)', None)
docnames.insert(0, '_validation_prev')
builder.state.register_title(
'_validation_next', 'Single Confluence', None)
docnames.append('_validation_next')
else:
builder.state.register_title(
'_validation_prev', 'Markdown Table', None)
Expand Down

0 comments on commit 4a5fa4a

Please sign in to comment.