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):
2020 started_at : Optional [str ]
2121 created_at : Optional [str ]
2222 completed_at : Optional [str ]
23+ urls : Optional [Dict [str , str ]]
2324
2425 def wait (self ) -> None :
2526 """Wait for prediction to finish."""
Original file line number Diff line number Diff line change @@ -156,6 +156,7 @@ def test_async_timings():
156156 assert prediction .created_at == "2022-04-26T20:00:40.658234Z"
157157 assert prediction .completed_at is None
158158 assert prediction .output is None
159+ assert prediction .urls ["get" ] == "https://api.replicate.com/v1/predictions/p1"
159160 prediction .wait ()
160161 assert prediction .created_at == "2022-04-26T20:00:40.658234Z"
161162 assert prediction .completed_at == "2022-04-26T20:02:27.648305Z"
You can’t perform that action at this time.
0 commit comments