def test_patch_empty_payload(self, requests_mock): requests_mock.patch("https://demo.dev/patch", status_code=200, additional_matcher=lambda r: r.json() == {}) conn = Connector("https://demo.dev", None, None) status, *_ = conn.patch("/patch", dict()) assert status == 200
def test_patch_no_payload(self, requests_mock): requests_mock.patch("https://demo.dev/patch", status_code=200) conn = Connector("https://demo.dev", None, None) status, *_ = conn.patch("/patch") assert status == 200