We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f513d5c commit 8b73e47Copy full SHA for 8b73e47
1 file changed
tests/test_main.py
@@ -2,20 +2,26 @@
2
3
result = None
4
5
-class TestClass:
6
- def test_Started(self):
7
- started = True
8
- try:
+
+class TestClass:
+ def test_Started(self):
+ started = True
9
+ try:
10
handler.startServer('127.0.0.1', 8000, onEvent, False)
- except:
11
+ except Exception as error:
12
+ print(error)
13
14
started = False
- assert started == True
15
+ assert started
16
17
18
def onEvent(webhooksHandler: handler.WebhooksHandler, typeWebhook: str, body):
19
pass
20
21
22
def main():
23
TestClass.test_Started(TestClass)
24
25
26
if __name__ == "__main__":
- main()
27
+ main()
0 commit comments