Esempio n. 1
0
class ReviewboardExtensionTestCase(TestCase):
    def setUp(self):
        self.rb = ReviewboardExtension(mock_bot())

    @patch('helga.extensions.reviewboard.settings')
    def test_transform_match(self, settings):
        settings.REVIEWBOARD_URL = 'http://example.com/%(review)s'
        assert self.rb.transform_match('1234') == 'http://example.com/1234'
Esempio n. 2
0
class ReviewboardExtensionTestCase(TestCase):

    def setUp(self):
        self.rb = ReviewboardExtension(mock_bot())

    @patch('helga.extensions.reviewboard.settings')
    def test_transform_match(self, settings):
        settings.REVIEWBOARD_URL = 'http://example.com/%(review)s'
        assert self.rb.transform_match('1234') == 'http://example.com/1234'
Esempio n. 3
0
 def setUp(self):
     self.rb = ReviewboardExtension(mock_bot())
Esempio n. 4
0
 def setUp(self):
     self.rb = ReviewboardExtension(mock_bot())