[Misc] Continue refactoring model tests (#17573)

Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
This commit is contained in:
Cyrus Leung
2025-05-01 22:06:08 -07:00
committed by GitHub
parent b4003d11fc
commit f89d0e11bf
6 changed files with 20 additions and 16 deletions
+9 -1
View File
@@ -97,13 +97,18 @@ class _VideoAssets(_VideoAssetsBase):
def __init__(self) -> None:
super().__init__([
VideoAsset("sample_demo_1.mp4"),
VideoAsset("sample_demo_1"),
])
def prompts(self, prompts: _VideoAssetPrompts) -> list[str]:
return [prompts["sample_demo_1"]]
class _AudioAssetPrompts(TypedDict):
mary_had_lamb: str
winning_call: str
class _AudioAssetsBase(UserList[AudioAsset]):
pass
@@ -116,6 +121,9 @@ class _AudioAssets(_AudioAssetsBase):
AudioAsset("winning_call"),
])
def prompts(self, prompts: _AudioAssetPrompts) -> list[str]:
return [prompts["mary_had_lamb"], prompts["winning_call"]]
IMAGE_ASSETS = _ImageAssets()
"""Singleton instance of :class:`_ImageAssets`."""