Files
5ad3403636 fix: fix model download redirect issue, dependency placement, and test efficiency (#706)
* fix: fix model download redirect issue and add test

* fix: address review comments on requests dep, connection leak, and test download cap

* fix: fix inconsistency of testcase and code

* fix: address remaining PR review feedback

* fix: cli download uses auto network detection, matching webui behavior

* fix: use ModelScope local_dir directly, remove redundant tmp download and file shuffling

* fix: update cli download tests to match new auto/sdk-based download paths

* Fix ModelScope single-file local path handling

---------

Co-authored-by: nanaoto <10inspiral@gmail.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2026-06-16 14:53:34 +08:00

16 lines
474 B
Python

# padding_test.py is a manual script, not a pytest test module.
collect_ignore = ["padding_test.py"]
def pytest_addoption(parser):
parser.addoption(
"--use-modelscope", action="store_true", default=False,
help="Force download tests to use ModelScope path (for CN network testing)",
)
def pytest_configure(config):
if config.getoption("--use-modelscope"):
import indextts.utils.model_download as md
md._USING_MODELSCOPE = True