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 metadata to subscription #536

Open
wants to merge 3 commits into
base: original
Choose a base branch
from
Open
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
fix style for json format.
  • Loading branch information
turly221 committed Jan 23, 2018
commit 4f6e4e28858d27e05a0608157af5ad2399b30102
4 changes: 2 additions & 2 deletions pinax/stripe/tests/test_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1056,8 +1056,8 @@ def test_update_plan_charge_now(self, SyncMock):
def test_update_plan_metadata(self, SyncMock):
SubMock = Mock()
SubMock.customer = self.customer
subscriptions.update(SubMock, metadata={"test_value":"test_value"})
self.assertEquals(SubMock.stripe_subscription.metadata, {"test_value":"test_value"})
subscriptions.update(SubMock, metadata={"test_value": "test_value"})
self.assertEquals(SubMock.stripe_subscription.metadata, {"test_value": "test_value"})
self.assertTrue(SubMock.stripe_subscription.save.called)
self.assertTrue(SyncMock.called)

Expand Down