##// END OF EJS Templates
tests: Add a test that checks return type of pr title generate function. (has to be unicode)
Martin Bornhold -
r843:e7af289c default
parent child Browse files
Show More
@@ -359,6 +359,14 b' class TestPullRequestModel:'
359 pull_request, context=6)
359 pull_request, context=6)
360 assert 'file_1' in diff.raw
360 assert 'file_1' in diff.raw
361
361
362 def test_generate_title_returns_unicode(self):
363 title = PullRequestModel().generate_pullrequest_title(
364 source='source-dummy',
365 source_ref='source-ref-dummy',
366 target='target-dummy',
367 )
368 assert type(title) == unicode
369
362
370
363 class TestIntegrationMerge(object):
371 class TestIntegrationMerge(object):
364 @pytest.mark.parametrize('extra_config', (
372 @pytest.mark.parametrize('extra_config', (
General Comments 0
You need to be logged in to leave comments. Login now