MCPcopy Create free account

hub / github.com/debpalash/VoiceStudio / functions

Functions15,058 in github.com/debpalash/VoiceStudio

Functiontest_sanitize_redacts_hf_token
()
tests/test_failure_helper.py:46
Functiontest_sanitize_redacts_secret_env_values
(monkeypatch)
tests/test_failure_helper.py:52
Functiontest_sanitize_replaces_non_finite_with_silence
()
tests/test_generation_audio_guard.py:35
Functiontest_sanitize_strips_home_and_secrets
()
tests/probe/test_triage.py:30
Functiontest_sanitize_strips_home_path
()
tests/test_failure_helper.py:58
Functiontest_sanitizer_failure_never_latches_the_raw_reason
(monkeypatch)
tests/test_flashinfer_optin.py:77
Functiontest_save_and_load_round_trip
(tmp_path)
tests/test_pronunciation.py:111
Functiontest_save_as_profile_keeps_import_metadata_out_of_tts_fields
(client)
backend/tests/test_gallery_profiles.py:49
Functiontest_save_is_idempotent
(db)
tests/test_worker_task_store.py:135
Functiontest_save_job_persists_to_dub_history
save_job writes to dub_history so a subsequent get_job on a cold cache can hydrate from disk.
tests/test_dub_pipeline_state.py:102
Functiontest_save_job_upsert_does_not_clobber_language_with_empty
A later save without language info (e.g. a segment edit on a job dict that predates the fields) must NOT reset the healed columns — same non-e
tests/test_dub_pipeline_state.py:145
Functiontest_save_job_upsert_heals_language_columns
Completed-tracks-hidden P0: the ingest-time insert writes language / language_code as "" (target language not chosen yet). Generation sets them
tests/test_dub_pipeline_state.py:124
Functiontest_save_reraises_with_the_target_named
End-to-end through _safe_torchaudio_save, the #1221 code path.
tests/test_synth_error_classes.py:145
Functiontest_save_uses_add_to_git_credential_false
Standalone check for Pitfall #2 (explicit so reviewers see the invariant being enforced).
tests/backend/services/test_token_resolver.py:203
Functiontest_save_writes_both_store_and_login
save_app_token() must update settings_store AND call huggingface_hub.login(token=..., add_to_git_credential=False) so the canonical HF file (~
tests/backend/services/test_token_resolver.py:176
Functiontest_saved_endpoint_reloads_its_key_from_protected_storage
(tmp_path, monkeypatch)
tests/test_worker_inbound_transport.py:3949
Functiontest_saved_entry_transforms_generate_text
The load-bearing assertion: a saved dictionary entry changes the exact text the generate path feeds the model. We call the same transform the rout
tests/test_pronunciation_api.py:281
Functiontest_saved_key_is_not_world_readable
Follows the repo's precedent for machine-local secrets: 0600, atomic.
tests/test_worker_identity.py:170
Functiontest_saved_tokens_are_cpu_even_from_dataclass_on_another_device
(tmp_path)
tests/test_prompt_disk_cache.py:99
Functiontest_saving_a_base_url_drops_the_cache
Pointing at a different server must not keep serving the old server's model — that would make the user's edit look like it did nothing.
tests/test_lmstudio_model_discovery.py:156
Functiontest_saving_ollama_wins_over_legacy_env_after_migration
#963 end to end: legacy TRANSLATE_BASE_URL in the environment (as a pre-migration launch would have imported it) + no stored selection. A plai
tests/test_llm_providers.py:283
Functiontest_scaled_budget_has_one_implementation
generation.py's helper delegates to the canonical one, so the routers that import it directly can't drift from /generate.
tests/test_gpu_pool_queue_accounting_1190.py:251
Methodtest_scene_cuts_applied_when_viable
(self, app_client)
tests/test_dub_transcribe.py:779
Methodtest_scene_cuts_stored
(self, seeded_job)
tests/test_api.py:317
Methodtest_scene_split_algorithm
Test the segment splitting logic directly.
tests/test_api.py:322
Functiontest_scheduler_restore_adopts_recovered_tasks
End to end: the scheduler picks up in-flight work after a restart.
tests/test_worker_task_store.py:258
Functiontest_score_clamped_to_unit_interval
()
tests/evals/test_evals_harness.py:70
Methodtest_screenshot_regression_consolidates_fragments
18 garbled Whisper chunks → clean segments, no mid-word stubs.
tests/test_dub_transcribe.py:680
Functiontest_second_consecutive_timeout_recommends_isolated_engine
When guarded timeouts hit twice in a row in one session, pool resets clearly aren't recovering the hang — the error the user sees must name the
backend/tests/test_asr_transcribe_timeout.py:141
Functiontest_secret_error_logs_never_include_plaintext_or_ciphertext_variables
()
tests/test_ghas_false_positive_invariants.py:125
Functiontest_secret_failure_logs_omit_secret_identifier
(isolated_db, caplog)
tests/backend/services/test_settings_store.py:154
Functiontest_secrets_never_reach_the_wire
The worker is a remote machine whose logs the user may never read, so scrubbing has to happen before the error is sent, not at display time.
tests/test_worker_errors.py:74
Functiontest_seed_creates_demo_profile_on_empty_db
(tmp_path, monkeypatch)
tests/test_onboarding_demo.py:105
Functiontest_seed_is_noop_when_profiles_exist
(tmp_path, monkeypatch)
tests/test_onboarding_demo.py:130
Functiontest_seg_hashes_stored_per_language_with_flat_mirror
seg_hashes_by_lang keeps every track's fingerprints; the flat seg_hashes stays = the CURRENT track's map (what every legacy consumer already a
tests/test_redub_incremental.py:413
Functiontest_seg_ids_override
()
tests/test_dub_qc.py:87
Functiontest_seg_ref_fallback_when_speaker_has_no_clone
A speaker with no per-speaker clone but a single long line still binds to its own per-segment ref (renders as Default, but generation works).
tests/test_dub_multispeaker_voice_486.py:93
Functiontest_segment_artifact_discovery_rejects_traversal_and_symlinks
(tmp_path, monkeypatch)
tests/test_filesystem_boundaries.py:283
Functiontest_segment_extra_sig_absorbs_the_voice_map
()
tests/test_audiobook_cast.py:164
Functiontest_segment_hit_refreshes_mtime_for_lru
(tmp_path)
tests/test_longform_segment_cache.py:244
Functiontest_segment_key_changes_on_any_dimension
(mutation)
tests/test_longform_segment_cache.py:75
Functiontest_segment_key_deterministic
()
tests/test_longform_segment_cache.py:58
Functiontest_segment_refs_honour_an_out_dir_away_from_the_vocals
Functional half for the DEFAULT path: per-segment clips land in the requesting job's dir and survive the vocals-owning job's deletion.
tests/test_clone_refs_live_in_their_own_job_dir.py:145
Functiontest_segment_seed_decorrelates_chunks_but_tracks_base_seed
()
tests/test_longform_synth_params.py:36
Functiontest_segment_seed_deterministic_and_in_torch_range
()
tests/test_longform_synth_params.py:30
Functiontest_segment_seed_nonce_decorrelates_repeats
()
tests/test_audiobook_expressive.py:71
Functiontest_segment_seed_nonce_zero_is_backward_compatible
()
tests/test_audiobook_expressive.py:66
Functiontest_segment_with_fewer_than_two_words_unchanged
()
tests/test_resplit_speaker.py:52
Functiontest_segment_with_no_overlap_scores_full_drift
()
tests/test_dub_qc.py:70
Functiontest_segmented_is_on_by_default
(monkeypatch)
tests/test_segmented_download_default.py:17
Functiontest_segments_bind_to_speaker_clone_not_auto_seg
Long lines with a per-segment ref still get the UI-visible auto:{spk}.
tests/test_dub_multispeaker_voice_486.py:63
Functiontest_segments_duration_ratio
()
tests/probe/test_probe_dubbing.py:17
Functiontest_segments_get_sequential_ids_and_required_fields
()
tests/test_srt_parser.py:178
Functiontest_segments_text_endpoint_serves_i18n_map
Export preview tabs hydrate missing per-segment translations from segments_i18n — the authoritative per-language store (#1148 review).
tests/test_dub_audio_export.py:126
Methodtest_segments_zip_404
(self, client)
tests/test_api.py:278
Methodtest_segments_zip_export
(self, client, seeded_job)
tests/test_api.py:263
Functiontest_select_allows_cpu_fallback_engine
An MPS+CPU engine on a CUDA host is `cpu_fallback` (runs, slower) → allowed (not blocked), and the response echoes the routing verdict.
tests/backend/api/test_engines_route_shape.py:307
Functiontest_select_asr_env_var_still_wins
CRITICAL backward-compat: an existing `OMNIVOICE_ASR_BACKEND` pin keeps winning over a Settings pick — the pick persists to prefs (for when the
tests/backend/api/test_engines_route_shape.py:406
Functiontest_select_asr_persists_pref_and_echoes_active
(fresh_app, monkeypatch)
tests/backend/api/test_engines_route_shape.py:386
Functiontest_select_asr_unavailable_backend_is_400
(fresh_app, monkeypatch)
tests/backend/api/test_engines_route_shape.py:436
Functiontest_select_asr_unknown_backend_is_400
(fresh_app)
tests/backend/api/test_engines_route_shape.py:429
Functiontest_select_blocks_engine_unavailable_on_this_host
A CUDA-only engine (no cpu path) on a CPU host is `unavailable` → 400.
tests/backend/api/test_engines_route_shape.py:278
Functiontest_select_default_falls_back_on_probe_failure
GGUF-05 fallback — probe failure → in-process "omnivoice".
tests/backend/engines/test_omnivoice_gguf.py:407
Functiontest_select_default_falls_back_on_zero_byte_placeholder
#1172 integration — with the real is_available() logic and a 0-byte placeholder, the default-engine resolver must pick the in-process fallback
tests/backend/engines/test_omnivoice_gguf.py:621
Functiontest_select_default_falls_back_when_unavailable
GGUF-05 fallback — is_available False → in-process "omnivoice".
tests/backend/engines/test_omnivoice_gguf.py:421
Functiontest_select_default_returns_gguf_on_success
GGUF-05 happy path — probe + load succeed → "omnivoice-gguf" wins.
tests/backend/engines/test_omnivoice_gguf.py:396
Functiontest_select_llm_never_routing_gated
LLM entries are routing_status 'n/a' — the host gate must never fire.
tests/backend/api/test_engines_route_shape.py:342
Functiontest_select_mlx_audio_curated_key_persists
(fresh_app, monkeypatch)
tests/backend/api/test_engines_route_shape.py:496
Functiontest_select_mlx_audio_raw_repo_id_accepted
MLXAudioBackend already tolerates a raw HF repo id, not just a curated key (tts_backend.py ~733) — the API must too.
tests/backend/api/test_engines_route_shape.py:508
Functiontest_select_mlx_audio_rejects_malformed_repo_ids
(fresh_app, monkeypatch, model_id)
tests/backend/api/test_engines_route_shape.py:550
Functiontest_select_mlx_audio_repo_id_accepts_underscore_prefixes
(fresh_app, monkeypatch)
tests/backend/api/test_engines_route_shape.py:524
Functiontest_select_mlx_audio_unknown_model_id_is_400
(fresh_app, monkeypatch)
tests/backend/api/test_engines_route_shape.py:486
Functiontest_select_mlx_audio_without_model_id_does_not_touch_pref
Selecting mlx-audio without a model_id (e.g. an older frontend) must leave any existing mlx_audio_model_id pref untouched.
tests/backend/api/test_engines_route_shape.py:563
Functiontest_select_model_id_ignored_for_non_mlx_audio_backend
model_id is only meaningful for mlx-audio; picking a different TTS backend with a model_id set must not persist a stray pref.
tests/backend/api/test_engines_route_shape.py:575
Functiontest_select_sherpa_spec_ignores_demoted_query_override
A persisted frontend query must not resurrect a silent recognizer.
tests/test_capture_ws.py:71
Functiontest_selected_passage_rms_undoes_input_gain
(monkeypatch)
tests/test_omnivoice_reference_bound.py:174
Methodtest_selected_source_lang_overrides_detection
(self, app_client)
tests/test_dub_transcribe.py:763
Functiontest_selection_skips_a_demoted_model
The payoff: dictation stops auto-selecting the model that returns nothing and routes to the capture ASR engine (None) instead.
backend/tests/test_dictation_model_demotion.py:54
Functiontest_self_heal_failure_degrades_to_cpu_never_raises
An OOM while moving back must leave the pre-fix behaviour (slow), not a failed generation.
tests/test_tts_placement_self_heal.py:140
Functiontest_self_heal_from_a_gpu_pool_thread_does_not_deadlock
The move is normally dispatched to the GPU pool so it serializes against in-flight inference. But ``OmniVoiceBackend._ensure_loaded()`` reaches
tests/test_tts_placement_self_heal.py:164
Functiontest_self_heal_recognises_both_wordings
The repair ladder keys off the same predicate as the classifier — if it misses a wording, the user gets a hint about an automatic repair that
tests/test_hf_cache_repair.py:550
Functiontest_self_signed_certificate_is_generated_and_pinnable
()
tests/test_worker_transport.py:86
Functiontest_selfheal_id_to_testid_and_text
()
tests/probe/test_probe_web.py:49
Functiontest_selfheal_loosens_class_chain
()
tests/probe/test_probe_web.py:57
Functiontest_selftest_captures_synth_exception_without_500
(fresh_app)
tests/backend/api/test_engines_route_shape.py:821
Functiontest_selftest_in_process_success
(fresh_app)
tests/backend/api/test_engines_route_shape.py:765
Functiontest_selftest_is_admin_gated
(fresh_app)
tests/backend/api/test_engines_route_shape.py:815
Functiontest_selftest_rejects_subprocess_engine
(fresh_app)
tests/backend/api/test_engines_route_shape.py:785
Functiontest_selftest_timeout_returns_timed_out
A synth that outruns the bounded timeout returns ok=False/timed_out — the panel never hangs. Pin the timeout tiny and block generate briefly.
tests/backend/api/test_engines_route_shape.py:855
Functiontest_selftest_unavailable_engine_is_400
(fresh_app)
tests/backend/api/test_engines_route_shape.py:797
Functiontest_selftest_unknown_id_is_404
(fresh_app)
tests/backend/api/test_engines_route_shape.py:809
Functiontest_send_recv_roundtrip
(sc)
tests/test_pockettts_sidecar.py:131
Functiontest_send_recv_roundtrip
A frame sent and received back is byte-identical.
tests/test_subprocess_sidecar_wire.py:45
Functiontest_send_recv_roundtrip
(sc)
tests/test_confucius4_sidecar.py:138
Functiontest_sensitive_logging_sites_emit_metadata_not_paths_keys_or_tracebacks
()
tests/test_logging_utils.py:57
Functiontest_separate_directories_are_both_added
A system ffmpeg plus a bundled ffprobe is a real configuration — the resolver already supports it, so PATH must reflect both.
tests/test_media_tool_missing.py:130
Methodtest_serialization_load_not_reassigned
(self)
backend/tests/test_asr_pickle_safety.py:65
Functiontest_serve_enable_falls_back_to_http_when_https_fails
()
tests/test_tailscale_service.py:78
Functiontest_serve_enable_not_running_is_clear_error
()
tests/test_tailscale_service.py:50
Functiontest_serve_enable_proxies_configured_backend_port
When OMNIVOICE_PORT is set and serve_enable() is called with no explicit port, the proxy target must use the configured backend port (not 3900).
tests/test_tailscale_service.py:86
← previousnext →13,501–13,600 of 15,058, ranked by callers