Run unittest.main

This commit is contained in:
DarkCat09 2024-05-31 19:49:36 +04:00
parent 116ee89390
commit 30c9f0d8db
Signed by: DarkCat09
GPG key ID: 0A26CD5B3345D6E3

View file

@ -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()