Exemplo n.º 1
0
 def test_search_yt(self):
     with mock.patch("mopidy_youtube.backend.pafy"):
         videos = search_youtube("chvrches")
         self.assertEquals(len(videos), 15)
Exemplo n.º 2
0
def test_search_yt(pafy_mock_with_video):
    videos = backend.search_youtube('chvrches')

    assert len(videos) == 15
Exemplo n.º 3
0
 def test_search_yt(self):
     with mock.patch('mopidy_youtube.backend.pafy'):
         videos = search_youtube('chvrches')
         self.assertEquals(len(videos), 15)