Skip to content

Commit e57fb61

Browse files
committed
tests: update check for warning directive
An update [1] to adjust warning directives to map to Confluence note types was made. Updating the unit test to handle this. [1]: dbc3660 Signed-off-by: James Knight <git@jdknight.me>
1 parent 478de73 commit e57fb61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit-tests/test_rst_admonitions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def test_storage_rst_admonitions_default(self):
2727
self._verify_storage_tags(data, 'important', 'warning')
2828
self._verify_storage_tags(data, 'note', 'info')
2929
self._verify_storage_tags(data, 'tip', 'tip')
30-
self._verify_storage_tags(data, 'warning', 'warning')
30+
self._verify_storage_tags(data, 'warning', 'note')
3131

3232
macro = self._verify_storage_tags(data, 'admonition', 'info')
3333
title_param = macro.find('ac:parameter', {'ac:name': 'title'})
@@ -55,7 +55,7 @@ def test_storage_rst_admonitions_v2(self):
5555
self._verify_storage_tags(data, 'important', 'warning')
5656
self._verify_storage_tags(data, 'note', 'info')
5757
self._verify_storage_tags(data, 'tip', 'tip')
58-
self._verify_storage_tags(data, 'warning', 'warning')
58+
self._verify_storage_tags(data, 'warning', 'note')
5959

6060
# v2 admonition is stored in a adf panel node
6161
# - adf nodes are wrapped in extension tags

0 commit comments

Comments
 (0)