You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

22 lines
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. }