Revision ba777b02 snf-django-lib/snf_django/utils/testing.py

b/snf-django-lib/snf_django/utils/testing.py
204 204
            return (len(astakos.return_value.issue_one_commission.mock_calls) +
205 205
                    serial)
206 206
        astakos.return_value.issue_one_commission.side_effect = foo
207
        astakos.return_value.resolve_commissions.return_value = {"failed": []}
207
        def resolve_mock(*args, **kwargs):
208
            return {"failed": [],
209
                    "accepted": args[0],
210
                    "rejected": args[1],
211
                    }
212
        astakos.return_value.resolve_commissions.side_effect = resolve_mock
208 213
        yield astakos.return_value
209 214

  
210 215

  

Also available in: Unified diff