Esempio n. 1
0
 def test_test_commit(self, info_mock, test_revision_mock):
     git_id = '3' * 40
     info_mock.return_value = {'git_id': git_id,
                               'message': u'I\xf1t\xebrn\xe2ti\xf4n\xe0l',
                               'author': u'\u03bcs\xeb\u044f'}
     runtests.test_commit(sentinel.id)
     assert Revision.q.filter_by(git_id=git_id).count() == 1
Esempio n. 2
0
 def test_test_commit_existing(self, info_mock, test_revision_mock):
     info_mock.return_value = {'git_id': '2' * 40}
     runtests.test_commit(sentinel.id)
     assert test_revision_mock.called is False