Skip to content

Commit 8b73e47

Browse files
committed
Fixed tests
1 parent f513d5c commit 8b73e47

1 file changed

Lines changed: 13 additions & 7 deletions

File tree

tests/test_main.py

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,26 @@
22

33
result = None
44

5-
class TestClass:
6-
def test_Started(self):
7-
started = True
8-
try:
5+
6+
class TestClass:
7+
def test_Started(self):
8+
started = True
9+
try:
910
handler.startServer('127.0.0.1', 8000, onEvent, False)
10-
except:
11+
except Exception as error:
12+
print(error)
13+
1114
started = False
12-
assert started == True
15+
assert started
16+
1317

1418
def onEvent(webhooksHandler: handler.WebhooksHandler, typeWebhook: str, body):
1519
pass
1620

21+
1722
def main():
1823
TestClass.test_Started(TestClass)
1924

25+
2026
if __name__ == "__main__":
21-
main()
27+
main()

0 commit comments

Comments
 (0)