From 30c9f0d8db6cc4d612a88ca1f6a90c15ed05bf02 Mon Sep 17 00:00:00 2001 From: DarkCat09 Date: Fri, 31 May 2024 19:49:36 +0400 Subject: [PATCH] Run unittest.main --- main.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.py b/main.py index a3a8020..8388db3 100644 --- a/main.py +++ b/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()