Skip to content

Commit 020bdcb

Browse files
Fix assertion messages in Help Utils tests.
1 parent de04c5b commit 020bdcb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/test/test_api/test_helputils.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,18 @@
3535
class TestHelpUtils(test_api_utils.APITestCase):
3636
def test_get_help_source(self):
3737
src = helputils.get_help_source()
38-
assert isinstance(src, pycompat.TEXT_TYPE)
38+
msg = 'Invalid help source; src=%r'
39+
assert isinstance(src, pycompat.TEXT_TYPE), msg % src
3940

4041
def test_get_help_base_location(self):
4142
src = helputils.get_help_source()
4243
url = helputils.get_help_base_location(help_source=src)
4344
msg = (
4445
'The help URL cannot be found! '
45-
'Did you build and install documentation?'
46+
'Did you build and install documentation? '
4647
'url=%r'
4748
)
48-
assert isinstance(url, pycompat.TEXT_TYPE), msg
49+
assert isinstance(url, pycompat.TEXT_TYPE), msg % url
4950

5051

5152
if __name__ == '__main__':

0 commit comments

Comments
 (0)