• 
      

    Add new SpyOpReturnInOrder and SpyOpRaiseInOrder spy operations.

    Review Request #11799 — Created Aug. 20, 2021 and submitted

    Information

    kgb
    master

    Reviewers

    kgb

    SpyOpReturnInOrder is a mix between SpyOpReturn and
    SpyOpMatchInOrder. It takes a list of values, and will return a value
    for each call made, in the order provided. If a call once the list is
    exhausted, an exception will be raised.

    SpyOpRaiseInOrder is the SpyOpRaise equivalent. It will raise
    exceptions in order.

    All unit tests pass in Python 2 and 3.

    Summary ID
    Add new SpyOpReturnInOrder and SpyOpRaiseInOrder spy operations.
    `SpyOpReturnInOrder` is a mix between `SpyOpReturn` and `SpyOpMatchInOrder`. It takes a list of values, and will return a value for each call made, in the order provided. If a call once the list is exhausted, an exception will be raised. `SpyOpRaiseInOrder` is the `SpyOpRaise` equivalent. It will raise exceptions in order.
    d9557c4ba8868ed86d87be263b078b556b1ef701
    Description From Last Updated

    F401 'kgb.ops.SpyOpRaiseInOrder' imported but unused

    reviewbotreviewbot
    Checks run (1 failed, 1 succeeded)
    flake8 failed.
    JSHint passed.

    flake8

    david
    1. Ship It!
    2. 
        
    chipx86
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to master (60dd983)