MCPcopy Create free account

hub / github.com/debpalash/VoiceStudio / functions

Functions15,058 in github.com/debpalash/VoiceStudio

Functiontest_on_401_cascade
Active source = 'app', call on_401('app') → next valid source.
tests/backend/services/test_token_resolver.py:125
Functiontest_on_bytes_reports_total
(tmp_path)
tests/test_fdl_segmented_download.py:106
Functiontest_one_bad_unit_does_not_demote_a_working_worker
(tmp_path, pool_executor)
tests/test_gpu_gateway.py:536
Functiontest_one_edit_marks_exactly_one_segment_stale
The #281 scenario: generate stored server-side hashes; the editor recomputes with client-side payloads; ONE text edit → ONE stale line.
tests/test_redub_incremental.py:101
Functiontest_one_panel_typing_a_stale_key_cannot_lock_out_another
The throttle is per source address on purpose: a shared counter turns one person's stale bookmark into an outage for everybody else.
tests/test_worker_inbound_keys.py:317
Functiontest_one_sentence_edit_rerenders_exactly_one_segment
(tmp_path)
tests/test_longform_segment_cache.py:94
Functiontest_one_success_clears_the_count
Consecutive, not cumulative — a breaker holds no grudge, which is the whole reason it cannot decay into permanent quarantine.
tests/test_worker_breaker.py:77
Functiontest_one_survivor_of_several_is_reported
The branch that shipped broken.
tests/test_dropped_chunk_is_not_silent.py:181
Functiontest_one_waiter_timing_out_does_not_cancel_the_others
()
tests/test_worker_scheduler.py:1015
Functiontest_only_markers_yields_no_segments
()
tests/test_ssml_lite.py:101
Functiontest_only_mixed_segment_splits_others_identity
()
tests/test_resplit_speaker.py:118
Functiontest_only_the_chosen_worker_is_used
Others may be connected; standby means they receive nothing.
tests/test_worker_routing.py:200
Functiontest_only_the_hash_is_suitable_for_storage
()
tests/test_worker_identity.py:145
Functiontest_only_the_large_models_ask_for_extra_threads
(sd)
tests/test_sherpa_model_sizes.py:141
Functiontest_only_tts_entries_are_marked_required
(client)
tests/test_setup_recommendations.py:115
Functiontest_only_tts_is_required
()
tests/test_models_catalog.py:65
Functiontest_onsets_empty_or_invalid_audio
()
tests/test_onset_align.py:248
Functiontest_onsets_hysteresis_ignores_short_dip
()
tests/test_onset_align.py:269
Functiontest_onsets_hysteresis_long_gap_registers_new_onset
()
tests/test_onset_align.py:280
Functiontest_onsets_silence_returns_empty
()
tests/test_onset_align.py:244
Functiontest_onsets_sorted_ascending
()
tests/test_onset_align.py:298
Functiontest_onsets_speech_at_t0_registers
()
tests/test_onset_align.py:262
Functiontest_onsets_stereo_audio_accepted
()
tests/test_onset_align.py:290
Functiontest_onsets_two_bursts_yield_two_onsets
()
tests/test_onset_align.py:253
Functiontest_oom_still_gets_the_flush_hint
The timeout branch runs first, so pin that it did not swallow the case the OOM branch exists for.
tests/test_generation_timeout_is_named.py:165
Functiontest_op_allowlist_constant_shape
PARENT_INBOUND_OPS must contain exactly the documented set.
tests/backend/services/test_subprocess_backend.py:279
Functiontest_op_allowlist_drops_unknown
An unknown sidecar op is logged and discarded; parent keeps reading. T-02-04 — set up the echo sidecar to emit an `exfiltrate` op followed by
tests/backend/services/test_subprocess_backend.py:257
Functiontest_open_breaker_removes_a_worker
()
tests/test_worker_scheduler.py:271
Functiontest_openai_autofit_fit_pass_is_budget_bounded
A slow fit LLM must not spin one adjust_for_slot per segment unbounded: the whole translate returns within the budget and unfinished segments
tests/test_dub_translate.py:369
Functiontest_openai_client_importable
()
tests/test_llm_openai_available.py:13
Functiontest_openai_compat_maps_timeouts_to_retryable_503
A timed-out generate must not look like a server crash to a script.
tests/test_gpu_pool_queue_accounting_1190.py:326
Methodtest_openai_compat_transcriptions_409
(self, client)
tests/test_asr_model_missing.py:370
Functiontest_openai_disabled_skill_400_names_llm_skills
A deliberately disabled dub_translation skill names the Skills page.
tests/test_dub_translate.py:506
Functiontest_openai_env_fallback_still_works
Legacy env-only setups (no provider in the app) keep working unchanged, including TRANSLATE_MODEL selection.
tests/test_dub_translate.py:530
Functiontest_openai_segment_error_is_scrubbed
An OpenAI-compatible provider that echoes a key / home path in its error body must not leak it into the per-segment error response.
tests/test_dub_translate.py:408
Functiontest_openai_speech_applies_normalization_exactly_once
(client, fake_engine, norm_spy)
tests/test_text_normalization_routes.py:109
Functiontest_openai_speech_pcm_response_is_watermarked
The raw-PCM branch bypasses the container encoder — it must not bypass the mark (tensor-stage marking covers every response_format uniformly).
tests/test_synthetic_audio_watermark_1169.py:197
Functiontest_openai_speech_toggle_off_sends_raw_text
(client, fake_engine, monkeypatch)
tests/test_text_normalization_routes.py:121
Functiontest_openai_speech_wav_response_is_watermarked
(client, fake_engine, marking_on)
tests/test_synthetic_audio_watermark_1169.py:187
Functiontest_openai_transcriptions_degrades_past_broken_engine
The bug, end to end: 500 + raw dlopen error before the fix.
backend/tests/test_asr_request_path_degrades.py:132
Functiontest_openai_unconfigured_400_names_llm_providers
Nothing configured anywhere → an up-front actionable 400 pointing at Settings → LLM Providers, not a raw per-segment 401.
tests/test_dub_translate.py:481
Functiontest_openai_uses_provider_configured_in_settings
A ready dub_translation skill (Settings → LLM Providers) powers the engine — its client, its model, its timeout — with no env vars set.
tests/test_dub_translate.py:453
Functiontest_openapi_ui_is_translated_in_every_locale
(locale)
tests/test_locale_parity.py:183
Functiontest_operator_can_force_close
The user fixed the machine and knows it — a breaker with no manual clear is the quarantine trap again.
tests/test_worker_breaker.py:137
Methodtest_opt_in_engines_are_not_gated
(self)
tests/test_asr_model_missing.py:92
Functiontest_opting_in_without_any_token_still_cannot_transmit
A build with no destination at all (env absent AND in-repo default blanked) — the toggle must not pretend otherwise.
tests/test_analytics_optin.py:94
Functiontest_optional_dep_missing
If ``import supertonic`` fails, is_available() returns False with an install hint that mentions Model Catalogue → Engines or `uv add`.
tests/test_supertonic3.py:235
Functiontest_optional_dep_pin
``pyproject.toml`` exposes a ``supertonic`` optional-dependency entry with the version approved by Task 1 (1.3.1 default).
tests/test_supertonic3.py:38
Functiontest_orcarouter_provider_contract
(lp, monkeypatch)
tests/test_llm_providers.py:50
Methodtest_order_preserved_across_batches
(self)
tests/test_smart_fit_export.py:177
Functiontest_ordinary_backend_keeps_bounded_chunks
(tmp_path, monkeypatch)
tests/test_funasr_global_speaker_chunking.py:176
Functiontest_ordinary_mono_is_untouched
The only shape that actually occurs in production. The guard must stay inert for it — including for the (1, N) batch axis `squeeze()` removes.
tests/test_sidecar_downmix_is_channel_aware.py:127
Functiontest_ordinary_validation_error_keeps_fastapis_shape
Clients and the frontend parse `detail[].loc/msg/type` — unchanged.
backend/tests/test_validation_error_handler.py:73
Functiontest_ordinary_values_pass_through_untouched
(value)
backend/tests/test_validation_error_handler.py:109
Functiontest_origin_bundled_for_acquired_and_imageio_paths
(mt)
tests/test_media_tools.py:94
Functiontest_origin_custom_vs_sidecar_disambiguated_by_pref
(mt, monkeypatch)
tests/test_media_tools.py:106
Functiontest_origin_system_when_no_override
(mt)
tests/test_media_tools.py:102
Methodtest_original_only_resolves_stale_default_before_retime
(self, app_client)
tests/test_dub_export_unique.py:106
Functiontest_orphan_ref_text_dropped_and_dots_defaults
ref_text without ref_audio is dropped (upstream would raise), and the dots-appropriate defaults (num_steps=10, guidance=1.2) apply.
tests/test_dots_tts.py:141
Functiontest_ors_with_existing_flags_never_replaces
()
backend/tests/test_win_subprocess.py:24
Functiontest_os_error_gains_the_destination_facts
(tmp_path)
tests/test_dub_download_os_error.py:99
Functiontest_os_exec_refusal_never_leaks_absolute_paths
(home_path)
tests/backend/services/test_binary_preflight.py:105
Functiontest_os_exec_refusal_survives_empty_oserror
()
tests/backend/services/test_binary_preflight.py:115
Functiontest_oserror_returns_none
(monkeypatch)
tests/test_loudness.py:71
Functiontest_other_download_write_failures_share_the_class
(reason)
tests/test_dub_download_os_error.py:67
Functiontest_other_truncation_wordings_are_recognised
(reason)
tests/test_truncated_download_retry.py:51
Functiontest_outbound_teardown_waits_for_connector_cleanup
Removal must not return while the old worker is still schedulable.
tests/test_worker_inbound_transport.py:3569
Functiontest_output_language_skips_without_detector
()
tests/probe/test_probe_dubbing.py:37
Functiontest_output_language_with_detector
()
tests/probe/test_probe_dubbing.py:41
Functiontest_overlap_clamped_to_short_chunk
()
tests/test_chunked_tts.py:122
Functiontest_overlap_weighted_winner
()
tests/test_assign_speakers_from_diarization.py:47
Functiontest_overlap_winner
()
tests/test_assign_speakers_from_turns.py:5
Functiontest_overlapping_embeds_never_hand_compile_back
Upstream's no_compile() saves/restores per call, which is only correct for LIFO nesting. Concurrent embeds are not LIFO: when the FIRST scope to
tests/test_watermark_no_torch_compile_1615.py:141
Methodtest_overlapping_other_speaker_counts_as_adjacent
(self)
tests/test_speaker_clone_purity.py:98
Functiontest_override_applied_when_build_lacks_the_arch
(monkeypatch)
tests/test_rocm_arch_gate.py:236
Functiontest_override_beats_active
(skills, store)
tests/test_llm_skills.py:82
Functiontest_override_for_a_missing_family_is_noted_and_ignored
(monkeypatch)
tests/test_device_override.py:81
Functiontest_override_matching_the_auto_pick_adds_no_note
(monkeypatch)
tests/test_device_override.py:92
Functiontest_override_on_unconfigured_provider_is_not_ready
(skills, store)
tests/test_llm_skills.py:106
Functiontest_oversize_frame_rejected
A length-prefix > MAX_FRAME_BYTES must raise IOError before allocation. T-02-01 — defends against malicious sidecar sending 0xFFFFFFFF to make
tests/backend/services/test_subprocess_backend.py:227
Functiontest_oversized_capability_updates_are_dropped_before_conversion
(plane)
tests/test_worker_server_integrity.py:1177
Functiontest_oversized_db_is_skipped_with_log_line
(tmp_path, monkeypatch, caplog)
tests/test_db_backup.py:105
Functiontest_oversized_declared_wav_payload_is_not_treated_as_playable
A hostile frame count must be bounded and backed by real payload bytes.
backend/tests/test_audio_validation.py:9
Functiontest_oversized_paste_is_rejected_before_parsing
()
tests/test_dub_parse_subtitle_text.py:84
Methodtest_overwrite
(self, batch)
backend/tests/test_batch.py:195
Methodtest_overwrites_existing_target
(self, tmp_path: Path)
backend/tests/test_atomic_wav.py:40
Functiontest_package_is_version_scoped
Additive-only evolution needs the version in the package name, so a v2 can exist beside v1 during the N-2 skew window.
tests/test_worker_protocol_contract.py:68
Functiontest_panel_key_count_is_bounded_and_revoked_slots_are_reclaimed
( store, monkeypatch )
tests/test_worker_inbound_keys.py:263
Functiontest_parakeet_mlx_is_registered_with_hint_and_mps_compat
()
tests/test_asr_device_aware_autodetect.py:186
Functiontest_parakeet_mlx_real_transcribe_smoke
End-to-end on real weights (Apple Silicon only): load, transcribe a generated WAV, and verify the standard return shape survives the trip.
tests/test_asr_device_aware_autodetect.py:384
Functiontest_parakeet_mlx_token_to_word_mapping
Subword tokens (leading space = word start) merge into whisper-shaped word dicts with the span's start/end.
tests/test_asr_device_aware_autodetect.py:357
Functiontest_parakeet_transcribe_never_claims_english
The backend serves 25 languages and cannot see the model's detected pick — it must report the caller's requested language (or None), never a h
tests/test_asr_device_aware_autodetect.py:279
Functiontest_parallel_input_retry_cannot_truncate_a_staged_reader
( tmp_path, monkeypatch )
tests/test_worker_inbound_transport.py:2834
Functiontest_parallel_keys_reserve_against_one_global_input_quota
(tmp_path)
tests/test_worker_inbound_transport.py:2526
Functiontest_parallel_ranges_reassemble_exactly
(tmp_path)
tests/test_fdl_segmented_download.py:56
Functiontest_parallel_results_reserve_against_one_global_disk_quota
(tmp_path)
tests/test_worker_inbound_transport.py:2460
Functiontest_parity_int_vs_float_speed
JS sends `speed: 1`, pydantic parses `1.0` — same fingerprint.
tests/test_redub_incremental.py:76
Functiontest_parity_minimal_segment
A segment with only text set must hash identically whether it went through pydantic (defaults filled in) or came raw from the editor.
tests/test_redub_incremental.py:55
Methodtest_parity_with_legacy_builder
(self)
tests/test_smart_fit_export.py:208
Functiontest_parity_with_null_and_empty_string_defaults
()
tests/test_redub_incremental.py:63
← previousnext →12,501–12,600 of 15,058, ranked by callers