File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 35
35
class TestHelpUtils (test_api_utils .APITestCase ):
36
36
def test_get_help_source (self ):
37
37
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
39
40
40
41
def test_get_help_base_location (self ):
41
42
src = helputils .get_help_source ()
42
43
url = helputils .get_help_base_location (help_source = src )
43
44
msg = (
44
45
'The help URL cannot be found! '
45
- 'Did you build and install documentation?'
46
+ 'Did you build and install documentation? '
46
47
'url=%r'
47
48
)
48
- assert isinstance (url , pycompat .TEXT_TYPE ), msg
49
+ assert isinstance (url , pycompat .TEXT_TYPE ), msg % url
49
50
50
51
51
52
if __name__ == '__main__' :
You can’t perform that action at this time.
0 commit comments