##// END OF EJS Templates
tests: fixed some broken tests
milka -
r4563:98909132 default
parent child Browse files
Show More
@@ -608,7 +608,7 b' class TestPullrequestsView(object):'
608 pull_request.source_repo, pull_request=pull_request)
608 pull_request.source_repo, pull_request=pull_request)
609 assert status == ChangesetStatus.STATUS_REJECTED
609 assert status == ChangesetStatus.STATUS_REJECTED
610
610
611 comment_id = response.json.get('comment_id', None)
611 for comment_id in response.json.keys():
612 test_text = 'test'
612 test_text = 'test'
613 response = self.app.post(
613 response = self.app.post(
614 route_path(
614 route_path(
@@ -644,7 +644,7 b' class TestPullrequestsView(object):'
644 )
644 )
645 assert response.json
645 assert response.json
646
646
647 comment_id = response.json.get('comment_id', None)
647 for comment_id in response.json.keys():
648 assert comment_id
648 assert comment_id
649 test_text = 'test'
649 test_text = 'test'
650 self.app.post(
650 self.app.post(
@@ -684,8 +684,7 b' class TestPullrequestsView(object):'
684 )
684 )
685 assert response.json
685 assert response.json
686
686
687 comment_id = response.json.get('comment_id', None)
687 for comment_id in response.json.keys():
688 assert comment_id
689 test_text = 'init'
688 test_text = 'init'
690 response = self.app.post(
689 response = self.app.post(
691 route_path(
690 route_path(
@@ -722,9 +721,7 b' class TestPullrequestsView(object):'
722 extra_environ=xhr_header,
721 extra_environ=xhr_header,
723 )
722 )
724 assert response.json
723 assert response.json
725 comment_id = response.json.get('comment_id', None)
724 for comment_id in response.json.keys():
726 assert comment_id
727
728 test_text = 'test'
725 test_text = 'test'
729 self.app.post(
726 self.app.post(
730 route_path(
727 route_path(
General Comments 0
You need to be logged in to leave comments. Login now