From 5886c1c37fba642bb00f3eee45ffb0357a72a7e6 Mon Sep 17 00:00:00 2001 From: Zil0 <30212477+Zil0@users.noreply.github.com> Date: Wed, 16 May 2018 11:03:27 +0200 Subject: [PATCH] fix incorrect body in unban API test body parameter is for response, not request --- test/api_test.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/api_test.py b/test/api_test.py index d32729b5..530076f5 100644 --- a/test/api_test.py +++ b/test/api_test.py @@ -73,8 +73,7 @@ class TestUnbanApi: def test_unban(self): unban_url = "http://example.com" \ "/_matrix/client/r0/rooms/#foo:matrix.org/unban" - body = '{"user_id": "' + self.user_id + '"}' - responses.add(responses.POST, unban_url, body=body) + responses.add(responses.POST, unban_url, body='{}') self.cli.api.unban_user(self.room_id, self.user_id) req = responses.calls[0].request assert req.url == unban_url