Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit 5e3e7f9

Browse files
authored
fix(tests): fix deploy_model e2e test (#360)
1 parent 1e6d20e commit 5e3e7f9

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

examples/deployment/deployed_models.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ def heading(text: str) -> str:
2929

3030
if len(deployment_list.results) < 1:
3131
print("No deployed models found.")
32-
exit(1)
33-
34-
print(heading("Retrieve information about first deployment"))
35-
deployment_info = client.deployment.retrieve(id=deployment_list.results[0].id)
36-
pprint(deployment_info.model_dump())
32+
else:
33+
print(heading("Retrieve information about first deployment"))
34+
deployment_info = client.deployment.retrieve(id=deployment_list.results[0].id)
35+
pprint(deployment_info.model_dump())

0 commit comments

Comments
 (0)