Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 

22 строки
615 B

  1. package common
  2. import (
  3. "testing"
  4. "github.com/QuantumNous/new-api/constant"
  5. "github.com/stretchr/testify/require"
  6. )
  7. func TestTianyiYunChannelUsesVolcEngineAPIType(t *testing.T) {
  8. apiType, ok := ChannelType2APIType(constant.ChannelTypeDoubaoVideoCompatibleTianyiYun)
  9. require.True(t, ok)
  10. require.Equal(t, constant.APITypeVolcEngine, apiType)
  11. }
  12. func TestTianyiYunChannelUsesDoubaoVideoEndpointType(t *testing.T) {
  13. got := GetEndpointTypesByChannelType(constant.ChannelTypeDoubaoVideoCompatibleTianyiYun, "cdance2.0-0611")
  14. require.Equal(t, []constant.EndpointType{constant.EndpointTypeDoubaoVideo}, got)
  15. }