Changeset - ec6691dd9e94
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 14 years ago 2012-04-15 21:26:32
marcin@python-works.com
fixed tests
1 file changed with 9 insertions and 5 deletions:
0 comments (0 inline, 0 general)
rhodecode/tests/functional/test_changeset_comments.py
Show inline comments
 
@@ -72,17 +72,21 @@ class TestChangeSetCommentsController(Te
 
        response.follow()
 

	
 
        response = self.app.get(url(controller='changeset', action='index',
 
                                repo_name=HG_REPO, revision=rev))
 
        #test DB
 
        self.assertEqual(ChangesetComment.query().count(), 1)
 
        self.assertTrue('''<div class="comments-number">0 comment(s)'''
 
                        ''' (%s inline)</div>''' % 1 in response.body)
 
        self.assertTrue('''<div class="inline-comment-placeholder-line"'''
 
                        ''' line="n1" target_id="vcswebsimplevcsviews'''
 
                        '''repositorypy">''' in response.body)
 
        response.mustcontain(
 
            '''<div class="comments-number">0 comment(s)'''
 
            ''' (%s inline)</div>''' % 1
 
        )
 
        response.mustcontain(
 
            '''<div style="display:none" class="inline-comment-placeholder" '''
 
            '''path="vcs/web/simplevcs/views/repository.py" '''
 
            '''target_id="vcswebsimplevcsviewsrepositorypy">'''
 
        )
 

	
 
        self.assertEqual(Notification.query().count(), 1)
 
        self.assertEqual(ChangesetComment.query().count(), 1)
 

	
 
        notification = Notification.query().all()[0]
 
        ID = ChangesetComment.query().first().comment_id
0 comments (0 inline, 0 general)