fix: accept VK confirmation callback without secret

This commit is contained in:
nyan404 committed 2026-10-10 21:34:58 +03:00
1 parent 835be75049
commit e0e1e4f6bd
5 files changed
+9 -9

No files matched your search

+1 -1
View File
@@ -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"))