Qwen-Image-Layered-MRP-MLX/tests/schedulers/test_scheduler_lookup.py
Filip Strand c2c860f4de
Add Bria FIBO support (#279)
Co-authored-by: Filip Strand <filip@host-022.local>
2025-11-27 13:01:55 +01:00

18 lines
606 B
Python

import pytest
import mflux.models.common.schedulers as schedulers
def test_scheduler_by_path():
schedulers.try_import_external_scheduler("mflux.models.common.schedulers.linear_scheduler.LinearScheduler")
def test_scheduler_bad_module():
with pytest.raises(schedulers.SchedulerModuleNotFound):
schedulers.try_import_external_scheduler("someone.other.project.BarScheduler")
def test_scheduler_bad_classname():
with pytest.raises(schedulers.SchedulerClassNotFound):
schedulers.try_import_external_scheduler("mflux.models.common.schedulers.linear_scheduler.FooBarScheduler")