def test_yell_at_should_call_put_breaker_to_firebase_if_it_is_enabled( self, mock, mock_put_breaker): settings.FIREBASE_STORAGE_URL = '' yell_at('zkan') self.assertEqual(mock_put_breaker.call_count, 0)
def test_yell_at_should_call_put_breaker_to_firebase_if_it_is_enabled( self, mock, mock_put_breaker): settings.FIREBASE_STORAGE_URL = 'https://whobrokebuild.firebaseio.com' yell_at('zkan') mock_put_breaker.assert_called_once_with('zkan')
def test_yell_at_build_breaker_should_execute_slacker_cli(self, mock): yell_at('zkan') command = 'echo "Hey <!channel>! <@zkan> just broke the build!" | ' command += 'slacker -c %s ' % settings.SLACK_CHANNEL command += '-t %s -i :bear:' % settings.SLACK_TOKEN mock.assert_called_once_with(command, shell=True)
def test_yell_at_should_call_put_breaker_to_firebase_if_it_is_enabled( self, mock, mock_put_breaker ): settings.FIREBASE_STORAGE_URL = '' yell_at('zkan') self.assertEqual(mock_put_breaker.call_count, 0)
def test_yell_at_should_call_put_breaker_to_firebase_if_it_is_enabled( self, mock, mock_put_breaker ): settings.FIREBASE_STORAGE_URL = 'https://whobrokebuild.firebaseio.com' yell_at('zkan') mock_put_breaker.assert_called_once_with('zkan')