Run unittest.main
This commit is contained in:
parent
116ee89390
commit
30c9f0d8db
1 changed files with 5 additions and 0 deletions
5
main.py
5
main.py
|
@ -1,6 +1,7 @@
|
|||
import socket
|
||||
from urllib.request import urlopen, Request
|
||||
|
||||
import unittest
|
||||
from unittest import TestCase
|
||||
|
||||
from fixtures import device
|
||||
|
@ -70,3 +71,7 @@ class TestHTTP(TestCase):
|
|||
def _send_and_check(self, req: Request) -> None:
|
||||
with urlopen(req) as resp:
|
||||
self.assertEqual(resp.status, 200)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
|
Loading…
Add table
Reference in a new issue