Skip to content

task: JSONPlayback can be tricky to test #733

Description

@gmazoyer

Component

Python SDK

Task Description

The playback is using json.dumps(payload) which produces JSON with spaces after colons (e.g., {"key": "value"}), but httpx serializes JSON without spaces (e.g., {"key":"value"}).

This can lead to difficulty while testing the JSONPlayback when trying to compare hashes. We should either use ujson which produce a whitespace free JSON or instruct json.dumps to use (',', ':') as separator.

Metadata

Metadata

Assignees

Labels

type/taskBody of work related to an epic

Type

Fields

No fields configured for Task.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions