mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-22 23:31:12 +02:00
test(podcasts): update unit fixtures for second-based duration
This commit is contained in:
parent
38991c7db8
commit
cb70b64a70
1 changed files with 3 additions and 3 deletions
|
|
@ -31,8 +31,8 @@ def make_spec():
|
||||||
language: str = "en",
|
language: str = "en",
|
||||||
style: PodcastStyle = PodcastStyle.CONVERSATIONAL,
|
style: PodcastStyle = PodcastStyle.CONVERSATIONAL,
|
||||||
speakers: list[SpeakerSpec] | None = None,
|
speakers: list[SpeakerSpec] | None = None,
|
||||||
min_minutes: int = 10,
|
min_seconds: int = 600,
|
||||||
max_minutes: int = 20,
|
max_seconds: int = 1200,
|
||||||
focus: str | None = None,
|
focus: str | None = None,
|
||||||
) -> PodcastSpec:
|
) -> PodcastSpec:
|
||||||
if speakers is None:
|
if speakers is None:
|
||||||
|
|
@ -54,7 +54,7 @@ def make_spec():
|
||||||
language=language,
|
language=language,
|
||||||
style=style,
|
style=style,
|
||||||
speakers=speakers,
|
speakers=speakers,
|
||||||
duration=DurationTarget(min_minutes=min_minutes, max_minutes=max_minutes),
|
duration=DurationTarget(min_seconds=min_seconds, max_seconds=max_seconds),
|
||||||
focus=focus,
|
focus=focus,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue