File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010from effect .testing import SequenceDispatcher
1111
1212
13- def _disp (dispatcher ):
13+ def _base_and (dispatcher ):
1414 """Compose base_dispatcher onto the given dispatcher."""
1515 return ComposedDispatcher ([dispatcher , base_dispatcher ])
1616
@@ -30,7 +30,7 @@ def test_fold_effect():
3030 eff = fold_effect (operator .add , 'Nil' , effs )
3131
3232 with dispatcher .consume ():
33- result = sync_perform (_disp (dispatcher ), eff )
33+ result = sync_perform (_base_and (dispatcher ), eff )
3434 assert result == 'NilEiBeeCee'
3535
3636
@@ -58,7 +58,7 @@ def test_fold_effect_errors():
5858
5959 with dispatcher .consume ():
6060 with raises (FoldError ) as excinfo :
61- sync_perform (_disp (dispatcher ), eff )
61+ sync_perform (_base_and (dispatcher ), eff )
6262 assert excinfo .value .accumulator == 'NilEi'
6363 assert excinfo .value .wrapped_exception [0 ] is ZeroDivisionError
6464 assert str (excinfo .value .wrapped_exception [1 ]) == 'foo'
You can’t perform that action at this time.
0 commit comments