File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 11"""Tests for github_webhook.webhook"""
22
3- from __future__ import print_function
43
54import unittest
6- try :
7- from unittest .mock import Mock
8- except ImportError :
9- from mock import Mock
5+ from unittest .mock import Mock
6+
107
118from github_webhook .webhook import Webhook
129
1310
1411class TestWebhook (unittest .TestCase ):
15-
1612 def test_constructor (self ):
1713 # GIVEN
1814 app = Mock ()
@@ -22,7 +18,12 @@ def test_constructor(self):
2218
2319 # THEN
2420 app .add_url_rule .assert_called_once_with (
25- '/postreceive' , view_func = webhook ._postreceive , methods = ['POST' ])
21+ rule = "/postreceive" ,
22+ endpoint = "/postreceive" ,
23+ view_func = webhook ._postreceive ,
24+ methods = ["POST" ],
25+ )
26+
2627
2728# -----------------------------------------------------------------------------
2829# Copyright 2015 Bloomberg Finance L.P.
You can’t perform that action at this time.
0 commit comments