changeset 21454b2a5875 in modules/sale_subscription_asset:default
details:
https://hg.tryton.org/modules/sale_subscription_asset?cmd=changeset;node=21454b2a5875
description:
Fix scenario to raise the tested exception
diffstat:
tests/scenario_sale_subscription_asset.rst | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (20 lines):
diff -r 901879ee8100 -r 21454b2a5875 tests/scenario_sale_subscription_asset.rst
--- a/tests/scenario_sale_subscription_asset.rst Sat Dec 29 14:20:29
2018 +0100
+++ b/tests/scenario_sale_subscription_asset.rst Sat Dec 29 22:50:14
2018 +0100
@@ -127,6 +127,7 @@
>>> overlapping = Subscription()
>>> overlapping.party = customer
+ >>> overlapping.start_date = datetime.date(2017, 1, 1)
>>> overlapping.invoice_start_date = datetime.date(2017, 2, 1)
>>> overlapping.invoice_recurrence = monthly
>>> line = overlapping.lines.new()
@@ -137,7 +138,7 @@
>>> overlapping.save() # doctest: +IGNORE_EXCEPTION_DETAIL
Traceback (most recent call last):
...
- DomainValidationError: ....
+ ValidationError: ....
Cancelling the subscription will remove lot from the lines thus making it
available again::