Skip to content

Commit

Permalink
tests: adding configuration checks for publish-debug
Browse files Browse the repository at this point in the history
Signed-off-by: James Knight <james.d.knight@live.com>
  • Loading branch information
jdknight committed Mar 3, 2024
1 parent 24b5133 commit 0f3b173
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/unit-tests/test_config_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,25 @@ def test_config_check_publish(self):
with self.assertRaises(ConfluenceConfigError):
self._try_config()

def test_config_check_publish_debug(self):
self.config['confluence_publish_debug'] = ''
self._try_config()

self.config['confluence_publish_debug'] = 'urllib3'
self._try_config()

self.config['confluence_publish_debug'] = 'unknown-entry'
with self.assertRaises(ConfluenceConfigError):
self._try_config()

self.config['confluence_publish_debug'] = [1, 2, 3]
with self.assertRaises(ConfluenceConfigError):
self._try_config()

self.config['confluence_publish_debug'] = True
with self.assertRaises(SphinxWarning):
self._try_config()

def test_config_check_publish_delay(self):
self.config['confluence_publish_delay'] = 0.3
self._try_config()
Expand Down

0 comments on commit 0f3b173

Please sign in to comment.