fix: accept VK confirmation callback without secret
This commit is contained in:
1 parent
835be75049
commit
e0e1e4f6bd
5 files changed
+9
-9
No files matched your search
@@ -27,7 +27,7 @@ class VkCallbackHTTPTests(unittest.TestCase):
|
||||
thread.start()
|
||||
try:
|
||||
connection = http.client.HTTPConnection("127.0.0.1", server.server_port, timeout=2)
|
||||
body = json.dumps({"type": "confirmation", "group_id": 7, "secret": "secret"})
|
||||
body = json.dumps({"type": "confirmation", "group_id": 7})
|
||||
connection.request("POST", "/api/vk/callback", body, {"Content-Type": "application/json"})
|
||||
response = connection.getresponse()
|
||||
self.assertEqual((response.status, response.read().decode()), (200, "confirm"))
|
||||
|
||||
Reference in new issue
Block a user