Skip to content

Commit e94d2dc

Browse files
committed
feat: remove 'ready' state from ModelState and update related tests
1 parent e0b26c1 commit e94d2dc

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

src/fishaudio/types/shared.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class PaginatedResponse(BaseModel, Generic[T]):
3333
TrainMode = Literal["fast"]
3434

3535
# Model state types
36-
ModelState = Literal["created", "training", "trained", "failed", "ready"]
36+
ModelState = Literal["created", "training", "trained", "failed"]
3737

3838
# Latency modes
3939
LatencyMode = Literal["normal", "balanced"]

tests/unit/test_types.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -165,14 +165,8 @@ def test_tts_request_custom_new_parameters(self):
165165
assert request.early_stop_threshold == 0.5
166166

167167

168-
class TestVoiceStates:
169-
"""Test Voice model with different states and visibility."""
170-
171-
def test_voice_with_ready_state(self, sample_voice_response):
172-
"""Test Voice model with 'ready' state."""
173-
sample_voice_response["state"] = "ready"
174-
voice = Voice.model_validate(sample_voice_response)
175-
assert voice.state == "ready"
168+
class TestVoiceVisibility:
169+
"""Test Voice model with updated visibility."""
176170

177171
def test_voice_with_unlisted_visibility(self, sample_voice_response):
178172
"""Test Voice model with 'unlisted' visibility."""

0 commit comments

Comments
 (0)