We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec4f145 commit 7805b23Copy full SHA for 7805b23
tests/test_main.py
@@ -1,6 +1,3 @@
1
-import time
2
-import requests
3
-import asyncio
4
import whatsapp_api_webhook_server_python.webhooksHandler as handler
5
6
result = None
@@ -9,14 +6,13 @@ class TestClass:
9
def test_Started(self):
10
7
started = True
11
8
try:
12
- handler.startServer('http://127.0.0.1', 8000, onEvent, False)
+ handler.startServer('127.0.0.1', 8000, onEvent, False)
13
except:
14
started = False
15
assert started == True
16
17
def onEvent(webhooksHandler: handler.WebhooksHandler, typeWebhook: str, body):
18
- global result
19
- result = True
+ pass
20
21
def main():
22
TestClass.test_Started(TestClass)
0 commit comments