File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ class Prediction(BaseModel):
20
20
started_at : Optional [str ]
21
21
created_at : Optional [str ]
22
22
completed_at : Optional [str ]
23
+ urls : Optional [Dict [str , str ]]
23
24
24
25
def wait (self ) -> None :
25
26
"""Wait for prediction to finish."""
Original file line number Diff line number Diff line change @@ -156,6 +156,7 @@ def test_async_timings():
156
156
assert prediction .created_at == "2022-04-26T20:00:40.658234Z"
157
157
assert prediction .completed_at is None
158
158
assert prediction .output is None
159
+ assert prediction .urls ["get" ] == "https://api.replicate.com/v1/predictions/p1"
159
160
prediction .wait ()
160
161
assert prediction .created_at == "2022-04-26T20:00:40.658234Z"
161
162
assert prediction .completed_at == "2022-04-26T20:02:27.648305Z"
You can’t perform that action at this time.
0 commit comments