Skip to content

Commit 7805b23

Browse files
committed
fix test
1 parent ec4f145 commit 7805b23

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tests/test_main.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
import time
2-
import requests
3-
import asyncio
41
import whatsapp_api_webhook_server_python.webhooksHandler as handler
52

63
result = None
@@ -9,14 +6,13 @@ class TestClass:
96
def test_Started(self):
107
started = True
118
try:
12-
handler.startServer('http://127.0.0.1', 8000, onEvent, False)
9+
handler.startServer('127.0.0.1', 8000, onEvent, False)
1310
except:
1411
started = False
1512
assert started == True
1613

1714
def onEvent(webhooksHandler: handler.WebhooksHandler, typeWebhook: str, body):
18-
global result
19-
result = True
15+
pass
2016

2117
def main():
2218
TestClass.test_Started(TestClass)

0 commit comments

Comments
 (0)