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

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