From 45a5b7c0f620f487306f8fc9e455b59863cce25e Mon Sep 17 00:00:00 2001 From: DarkCat09 Date: Fri, 31 May 2024 17:50:13 +0400 Subject: [PATCH] Add HTTP POST test --- main.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.py b/main.py index 8e6feb2..47f388f 100644 --- a/main.py +++ b/main.py @@ -36,6 +36,12 @@ class TestHTTP(TestCase): HTTP_URL + '/get?' + device.http_req_data(), )) + def test_post(self) -> None: + self._send_and_check(Request( + HTTP_URL + '/post', + data=device.http_req_data().encode(), + )) + def test_json(self) -> None: raise NotImplemented