Skip to content

Commit 24d9d5a

Browse files
committed
[IMP] subscription_oca: Add test for action
1 parent d156b56 commit 24d9d5a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

subscription_oca/tests/test_subscription_oca.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,11 @@ def test_compute_display_name(self):
607607
stage.display_name, "Updated Test Stage", "display_name not computed"
608608
)
609609

610+
def test_open_subscription(self):
611+
invoice = self.sub1.create_invoice()
612+
action = invoice.action_open_subscription()
613+
self.assertEqual(action["domain"], [("id", "=", self.sub1.id)])
614+
610615
def _collect_all_sub_test_results(self, subscription):
611616
test_res = []
612617
sale_order = subscription.create_sale_order()
@@ -630,7 +635,6 @@ def _collect_all_sub_test_results(self, subscription):
630635
test_res.append(res["type"])
631636
test_res.append(subscription.sale_order_ids_count)
632637
subscription.action_view_sale_order_ids()
633-
# self.assertIn(str(subscription.sale_order_ids.id), str(res["domain"]))
634638
test_res.append(subscription.sale_order_ids.id)
635639
subscription.calculate_recurring_next_date(fields.Datetime.now())
636640
# self.assertEqual(

0 commit comments

Comments
 (0)