The Wayback Machine - https://web.archive.org/web/20201013133604/https://github.com/mre/hyperjson/pull/157
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement indent for dumps and make sure that all arguments are passed from dump to dumps #157

Merged
merged 3 commits into from Jun 20, 2020

Conversation

@shenek
Copy link
Contributor

@shenek shenek commented Jun 8, 2020

closes #137

shenek added 2 commits Jun 7, 2020
def test_simple_types(payload):
assert json.dumps(payload) == hyperjson.dumps(payload)
def test_simple_types(payload, dumps):
assert dumps(payload) == dumps(payload)

This comment has been minimized.

@mre

mre Jun 19, 2020
Owner

Shouldn't it be assert json.dumps(payload) == dumps(payload)?

This comment has been minimized.

@shenek

shenek Jun 20, 2020
Author Contributor

Definitely should. Thanks for noticing.

assert ignore_whitespace(json.dumps(
d)) == ignore_whitespace(hyperjson.dumps(d))
def test_complex_dicts(d, dumps):
assert ignore_whitespace(dumps(d)) == ignore_whitespace(dumps(d))

This comment has been minimized.

@mre

mre Jun 19, 2020
Owner

assert ignore_whitespace(json.dumps(d)) == ignore_whitespace(dumps(d))?

This comment has been minimized.

@shenek

shenek Jun 20, 2020
Author Contributor

Yes. Thanks for noticing.

@mre
Copy link
Owner

@mre mre commented Jun 19, 2020

Great effort; I appreciate it. Just a few remarks before we can merge this.

@shenek shenek requested a review from mre Jun 20, 2020
@mre mre merged commit 87335d4 into mre:master Jun 20, 2020
@mre
Copy link
Owner

@mre mre commented Jun 20, 2020

Merged! Thanks a lot for adding those features and for the fast turnarounds, @shenek.

@shenek
Copy link
Contributor Author

@shenek shenek commented Jun 21, 2020

You're welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
You can’t perform that action at this time.