Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
8eth committed Oct 31, 2024
1 parent 5012909 commit 87173fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/fixtures/plan/created.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Content-Type: application/xml; charset=utf-8
<unit_amount_in_cents>
<USD type="integer">1000</USD>
</unit_amount_in_cents>
<vertex_transaction_type>sale</vertex_transaction_type>
<vertex_transaction_type>rental</vertex_transaction_type>
</plan>

HTTP/1.1 201 Created
Expand All @@ -49,7 +49,7 @@ Location: https://api.recurly.com/v2/plans/planmock
<trial_interval_unit>days</trial_interval_unit>
<total_billing_cycles type="integer">10</total_billing_cycles>
<created_at type="datetime">2011-10-03T22:23:12Z</created_at>
<vertex_transaction_type>sale</vertex_transaction_type>
<vertex_transaction_type>rental</vertex_transaction_type>
<unit_amount_in_cents>
<USD type="integer">1000</USD>
</unit_amount_in_cents>
Expand Down
4 changes: 2 additions & 2 deletions tests/test_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -2073,7 +2073,7 @@ def test_plan(self):
unit_amount_in_cents=Money(1000),
total_billing_cycles=10,
custom_fields=[CustomField(name='food', value='pizza')],
vertex_transaction_type='sale'
vertex_transaction_type='rental'
)
with self.mock_request('plan/created.xml'):
plan.save()
Expand All @@ -2083,7 +2083,7 @@ def test_plan(self):
self.assertIsInstance(plan.custom_fields[0], CustomField)
self.assertEqual(plan.custom_fields[0].name, 'food')
self.assertEqual(plan.custom_fields[0].value, 'pizza')
self.assertEqual(plan.vertex_transaction_type, 'sale')
self.assertEqual(plan.vertex_transaction_type, 'rental')

with self.mock_request('plan/exists.xml'):
same_plan = Plan.get(plan_code)
Expand Down

0 comments on commit 87173fb

Please sign in to comment.