Skip to content

Commit 69faa95

Browse files
committed
update usecase for oustanding flow
1 parent 71a791c commit 69faa95

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

absbox/tests/regression/test_main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,9 @@ def test_collect_outstanding(setup_api):
391391
,rWithOsPoolFlow['pool_outstanding']['flow']['PoolConsol']])
392392
eqDataFrame(complete['pool']['flow']['PoolConsol'], combined)
393393

394+
assert rWithOsPoolFlow['pool_outstanding']['flow']['PoolConsol'].shape == (44, 16), "Outstanding pool cashflow should be non empty"
395+
assert rWithOsPoolFlow['result']['logs'].to_dict(orient="records")[-1]['Comment'] == "Oustanding pool cashflow hasn't been collected yet", "Outstanding pool cashflow should have logs"
396+
394397
@pytest.mark.pool
395398
def test_collect_pool_loanlevel_cashflow(setup_api):
396399
rAgg = setup_api.run(test04, read=True,runAssump =[])
@@ -480,4 +483,3 @@ def test_revolving_01(setup_api):
480483
# )
481484
# assert r[1][1]['PoolLevel'][0]['MortgageAssump'][1] == {'PrepaymentCPR': 0.38642105474696914 }
482485

483-

docs/source/analytics.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -847,12 +847,14 @@ cashflow projection will stop at the date specified.
847847

848848
After 0.46.5, the stop run can be specified by a :ref:`Condition` which will be evaluated on each distribution date described by :ref:`DatePattern`.
849849

850-
("stop", <DatePattern>, *<Condition>)
850+
.. code-block:: python
851+
852+
("stop", <DatePattern>, *<Condition>)
851853
852854
.. code-block:: python
853855
854-
# on each month end, the engine will evaluate two conditions, stop projection when ALL of them are met
855-
("stop", "MonthEnd", [">=","2022-01-01"], [("bondBalance","A1"),"<=",200])
856+
# on each month end, the engine will evaluate two conditions, stop projection when ALL of them are met
857+
("stop", "MonthEnd", [">=","2022-01-01"], [("bondBalance","A1"),"<=",200])
856858
857859
858860
Project Expense

0 commit comments

Comments
 (0)