Skip to content

Commit

Permalink
[IMP] subscription_oca: Add test for action
Browse files Browse the repository at this point in the history
  • Loading branch information
tarteo committed Jan 28, 2025
1 parent d156b56 commit 24d9d5a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion subscription_oca/tests/test_subscription_oca.py
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,11 @@ def test_compute_display_name(self):
stage.display_name, "Updated Test Stage", "display_name not computed"
)

def test_open_subscription(self):
invoice = self.sub1.create_invoice()
action = invoice.action_open_subscription()
self.assertEqual(action["domain"], [("id", "=", self.sub1.id)])

def _collect_all_sub_test_results(self, subscription):
test_res = []
sale_order = subscription.create_sale_order()
Expand All @@ -630,7 +635,6 @@ def _collect_all_sub_test_results(self, subscription):
test_res.append(res["type"])
test_res.append(subscription.sale_order_ids_count)
subscription.action_view_sale_order_ids()
# self.assertIn(str(subscription.sale_order_ids.id), str(res["domain"]))
test_res.append(subscription.sale_order_ids.id)
subscription.calculate_recurring_next_date(fields.Datetime.now())
# self.assertEqual(
Expand Down

0 comments on commit 24d9d5a

Please sign in to comment.