diff --git a/tests/handlers/test_destinations.py b/tests/handlers/test_destinations.py index 00a52cbb00..b49b830106 100644 --- a/tests/handlers/test_destinations.py +++ b/tests/handlers/test_destinations.py @@ -141,7 +141,7 @@ def test_discord_notify_calls_requests_post(): mock_post.assert_called_once_with( "https://discordapp.com/api/webhooks/test", - data=json.dumps(expected_payload), + data=json.dumps(expected_payload, separators=(',', ':')), # orjson.dumps always uses compact separators headers={"Content-Type": "application/json"}, timeout=5.0, ) @@ -248,7 +248,7 @@ def test_slack_notify_calls_requests_post(): mock_post.assert_called_once_with( "https://slack.com/api/api.test", - data=json.dumps(expected_payload).encode(), + data=json.dumps(expected_payload, separators=(',', ':')).encode(), timeout=5.0, ) @@ -508,7 +508,7 @@ def test_datadog_notify_calls_requests_post(): mock_post.assert_called_once_with( "https://api.datadoghq.com/api/v1/events", - data=json.dumps(expected_payload), + data=json.dumps(expected_payload, separators=(',', ':')), headers={ "Accept": "application/json", "Content-Type": "application/json", diff --git a/tests/test_cli.py b/tests/test_cli.py index ab33f6c716..c759029d4f 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -102,17 +102,17 @@ def test_list(self): Id: 3 Name: Atest Type: sqlite - Options: {"dbpath": "/tmp/test.db"} + Options: {"dbpath":"/tmp/test.db"} -------------------- Id: 1 Name: test1 Type: pg - Options: {"dbname": "testdb1", "host": "example.com"} + Options: {"dbname":"testdb1","host":"example.com"} -------------------- Id: 2 Name: test2 Type: sqlite - Options: {"dbpath": "/tmp/test.db"} + Options: {"dbpath":"/tmp/test.db"} """ self.assertMultiLineEqual(result.output, textwrap.dedent(expected_output).lstrip())