Skip to content

Commit

Permalink
Allow refresh() to take args (#95)
Browse files Browse the repository at this point in the history
`refresh()` can be called with args, so accept arbitrary args for the fake implementation.

This was an issue internally, where refresh appears to be called with args.
  • Loading branch information
markmcd authored Nov 10, 2023
1 parent 152d2cf commit e108d23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def test_end_to_end(self):

# Create the operation with the `initial_pb` but when it asks for an update
# return the `final_pb`.
def refresh():
def refresh(*_, **__):
return final_pb

# This is the base Operation class
Expand Down Expand Up @@ -133,7 +133,7 @@ def make_metadata(completed_steps):
ops = gen_operations()
initial_pb = next(ops)

def refresh():
def refresh(*_, **__):
"""get the next status on each refresh"""
return next(ops)

Expand Down

0 comments on commit e108d23

Please sign in to comment.