Skip to content

Commit

Permalink
make a bit softer
Browse files Browse the repository at this point in the history
  • Loading branch information
freddyaboulton committed Apr 24, 2023
1 parent 418be33 commit a11af11
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/python/test/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,13 @@ def my_function(x, progress=gr.Progress()):
all_progress_data = [
p for s in statuses if s.progress_data for p in s.progress_data
]
count = 0
for i in range(20):
unit = ProgressUnit(
index=i, length=20, unit="steps", progress=None, desc=None
)
assert unit in all_progress_data
count += unit in all_progress_data
assert count
finally:
demo.close()

Expand Down

0 comments on commit a11af11

Please sign in to comment.