Skip to content

Commit e108d23

Browse files
authored
Allow refresh() to take args (#95)
`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.
1 parent 152d2cf commit e108d23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_operations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def test_end_to_end(self):
6464

6565
# Create the operation with the `initial_pb` but when it asks for an update
6666
# return the `final_pb`.
67-
def refresh():
67+
def refresh(*_, **__):
6868
return final_pb
6969

7070
# This is the base Operation class
@@ -133,7 +133,7 @@ def make_metadata(completed_steps):
133133
ops = gen_operations()
134134
initial_pb = next(ops)
135135

136-
def refresh():
136+
def refresh(*_, **__):
137137
"""get the next status on each refresh"""
138138
return next(ops)
139139

0 commit comments

Comments
 (0)