Skip to content

Commit 48c8252

Browse files
authored
✨ Add support for verification statuses (#82)
1 parent 92fd5aa commit 48c8252

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/fastapi_cloud_cli/commands/deploy.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ class DeploymentStatus(str, Enum):
114114
building_image_failed = "building_image_failed"
115115
deploying = "deploying"
116116
deploying_failed = "deploying_failed"
117+
verifying = "verifying"
118+
verifying_failed = "verifying_failed"
117119
success = "success"
118120
failed = "failed"
119121

@@ -129,6 +131,8 @@ def to_human_readable(cls, status: "DeploymentStatus") -> str:
129131
cls.building_image_failed: "Build failed",
130132
cls.deploying: "Deploying",
131133
cls.deploying_failed: "Deploying failed",
134+
cls.verifying: "Verifying",
135+
cls.verifying_failed: "Verifying failed",
132136
cls.success: "Success",
133137
cls.failed: "Failed",
134138
}[status]

tests/test_deploy_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ def test_includes_paths(path: Path) -> None:
5656
(DeploymentStatus.building_image_failed, "Build failed"),
5757
(DeploymentStatus.deploying, "Deploying"),
5858
(DeploymentStatus.deploying_failed, "Deploying failed"),
59+
(DeploymentStatus.verifying, "Verifying"),
60+
(DeploymentStatus.verifying_failed, "Verifying failed"),
5961
(DeploymentStatus.success, "Success"),
6062
(DeploymentStatus.failed, "Failed"),
6163
],

0 commit comments

Comments
 (0)