forked from matrix-org/synapse
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unnecessary
json.dumps
from tests (matrix-org#13303)
- Loading branch information
Showing
13 changed files
with
143 additions
and
200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Remove unnecessary `json.dumps` from tests. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,6 @@ | |
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
import json | ||
from http import HTTPStatus | ||
|
||
from twisted.test.proto_helpers import MemoryReactor | ||
|
@@ -51,12 +50,11 @@ def test_3pid_lookup_disabled(self) -> None: | |
self.assertEqual(channel.code, HTTPStatus.OK, channel.result) | ||
room_id = channel.json_body["room_id"] | ||
|
||
params = { | ||
request_data = { | ||
"id_server": "testis", | ||
"medium": "email", | ||
"address": "[email protected]", | ||
} | ||
request_data = json.dumps(params) | ||
request_url = ("/rooms/%s/invite" % (room_id)).encode("ascii") | ||
channel = self.make_request( | ||
b"POST", request_url, request_data, access_token=tok | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.