コード例 #1
0
 def test_verify_web_hook_valid_request(self):
     main.verify_web_hook({'token': config['SLACK_TOKEN']})
コード例 #2
0
 def test_verify_web_hook_token_incorrect(self):
     with pytest.raises(ValueError):
         main.verify_web_hook({'token': 123})
コード例 #3
0
 def test_verify_web_hook_request_form_empty(self):
     with pytest.raises(ValueError):
         main.verify_web_hook({})
コード例 #4
0
 def test_verify_web_hook_valid_request(self):
     main.verify_web_hook({'token': config['SLACK_TOKEN']})
コード例 #5
0
 def test_verify_web_hook_token_incorrect(self):
     with pytest.raises(ValueError):
         main.verify_web_hook({'token': 123})
コード例 #6
0
 def test_verify_web_hook_request_form_empty(self):
     with pytest.raises(ValueError):
         main.verify_web_hook({})