ComfyUI/tests-unit/comfy_api_test/minimax_models_test.py
octo-patch 00932e2b17 feat: upgrade MiniMax default model to M3
- Add MiniMax-M3 to model list and set as default
- Keep MiniMax-M2.7 and MiniMax-M2.7-highspeed
- Remove older models (M2.5/M2.5-highspeed)
- Update related tests and pricing
2026-06-02 23:05:07 +08:00

34 lines
1.3 KiB
Python

import pytest
from comfy_api_nodes.apis.minimax import MiniMaxChatModel
class TestMiniMaxChatModel:
def test_m3_in_model_list(self):
"""MiniMax-M3 should be available in the chat model enum."""
assert MiniMaxChatModel.M3.value == 'MiniMax-M3'
def test_m27_in_model_list(self):
"""MiniMax-M2.7 should be available in the chat model enum."""
assert MiniMaxChatModel.M2_7.value == 'MiniMax-M2.7'
def test_m27_highspeed_in_model_list(self):
"""MiniMax-M2.7-highspeed should be available in the chat model enum."""
assert MiniMaxChatModel.M2_7_highspeed.value == 'MiniMax-M2.7-highspeed'
def test_m3_is_first_in_enum(self):
"""M3 should appear before older models in the enum."""
members = list(MiniMaxChatModel)
assert members[0] == MiniMaxChatModel.M3
assert members[1] == MiniMaxChatModel.M2_7
assert members[2] == MiniMaxChatModel.M2_7_highspeed
def test_legacy_m25_models_removed(self):
"""Older M2.5 models should be removed."""
values = [m.value for m in MiniMaxChatModel]
assert 'MiniMax-M2.5' not in values
assert 'MiniMax-M2.5-highspeed' not in values
def test_total_model_count(self):
"""Should have 3 chat models total (M3, M2.7, M2.7-highspeed)."""
assert len(MiniMaxChatModel) == 3