Add HTTP POST test

This commit is contained in:
DarkCat09 2024-05-31 17:50:13 +04:00
parent 3668a917a7
commit 45a5b7c0f6
Signed by: DarkCat09
GPG key ID: 0A26CD5B3345D6E3

View file

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