Ejemplo n.º 1
0
 def setUp(self):
     config.clear()
     self.setup_beets()
     responses.add(
         responses.POST,
         spotify.SpotifyPlugin.oauth_token_url,
         status=200,
         json={
             'access_token': '3XyiC3raJySbIAV5LVYj1DaWbcocNi3LAJTNXRnYY'
             'GVUl6mbbqXNhW3YcZnQgYXNWHFkVGSMlc0tMuvq8CF',
             'token_type': 'Bearer',
             'expires_in': 3600,
             'scope': '',
         },
     )
     self.spotify = spotify.SpotifyPlugin()
     opts = ArgumentsMock("list", False)
     self.spotify._parse_opts(opts)
Ejemplo n.º 2
0
 def setUp(self):
     config.clear()
     self.setup_beets()
     self.spotify = spotify.SpotifyPlugin()
     opts = ArgumentsMock("list", False)
     self.spotify.parse_opts(opts)