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

Add sanitize_id method #811

Merged
merged 7 commits into from
May 18, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix assertion
kamil-stripe committed May 18, 2022
commit f3e71b52902b0ba3faae7a5a62e6076b1743ae48
2 changes: 1 addition & 1 deletion tests/test_util.py
Original file line number Diff line number Diff line change
@@ -157,4 +157,4 @@ def test_convert_to_stripe_object_and_back(self):
def test_sanitize_id(self):
sanitized_id = util.sanitize_id("cu %x 123")
assert isinstance(sanitized_id, six.text_type)
assert sanitized_id == "cu++%25x123"
assert sanitized_id == "cu++%25x+123"