Testing 我在Sonos自测套件中发现错误了吗? 总结

Testing 我在Sonos自测套件中发现错误了吗? 总结,testing,sonos,Testing,Sonos,Sonos自检套件对于具有itemType=other的项目(如果它还具有自定义浏览图标)似乎错误地失败 我认为项目类型other应该包含在utility.py的列表中: 17 BROWSEABLE_CONTAINER_TYPES = ('artist', 'album', 'genre', 'playlist', 'favorites', 'albumList', 'trackList', 'artistTrackList', 'container', 'favorite', 'c

Sonos自检套件对于具有
itemType=other
的项目(如果它还具有自定义浏览图标)似乎错误地失败

我认为项目类型
other
应该包含在
utility.py
的列表中:

  17     BROWSEABLE_CONTAINER_TYPES = ('artist', 'album', 'genre', 'playlist', 'favorites', 'albumList', 'trackList', 'artistTrackList', 'container', 'favorite', 'collection', 'program', 'show')
细节 在运行sonos自检套件时,我在输出中遇到以下错误:

...
INFO Start Test Case: 844 Albumart test_custom_browse_icon_configuration
STOP Discovered custom browse icon URI should be something other than None. (is None)
STOP 844 Albumart test_custom_browse_icon_configuration
...
通过调试
albumart.py
test\u custom\u browse\u icon\u configuration
方法),我将问题追溯到
get\u sample\u custom\u browse\u icon\u url
方法的以下摘录:

  # TODO: Need to drill down one level deeper if the target image url cannot be found on the root level containers
  for mediaColl in response.Items:
      if mediaColl.itemType in container_types:
          if substitution_str in mediaColl.albumArtURI:
              return mediaColl.albumArtURI
          elif hasattr(mediaColl.albumArtURI,'value') and substitution_str in mediaColl.albumArtURI.value:
              return  mediaColl.albumArtURI.value
这段代码应该用来查找带有自定义相册艺术的容器。但是,
容器类型
是由前面的一行定义的:

  container_types = [t for t in Validation.BROWSEABLE_CONTAINER_TYPES if t.lower() != 'album']
Validation.BROWSEABLE\u CONTAINER\u type
utility.py
中定义如下:

  # sonos-selftest/smapi/content_workflow/utility.py
  15 class Validation(WorkflowTestFixture, SMAPIClient, SMAPIService):
  16
  17     BROWSEABLE_CONTAINER_TYPES = ('artist', 'album', 'genre', 'playlist', 'favorites', 'albumList', 'trackList', 'artistTrackList', 'container', 'favorite', 'collection', 'program', 'show')
请注意,此列表中缺少类型
'other'
!我很确定它应该包含在列表中,
browse.py
提到它:

234         **Reference:** BROWSEABLE_CONTAINER_TYPES = 'artist', 'album', 'genre', 'playlist', 'favorites', 'albumList', 'trackList', 'artistTrackList', 'container', 'favorite', 'collection', 'other', '    program'
变通办法 我可以通过将
itemType=other
更改为
itemType=container
(这两个值相当)来解决这个问题

然而,如果这在Sonos自测套件的未来版本中得到修复,那就太好了