Remove references to nonexistent API call, fix missing dependency in README
This commit is contained in:
parent
3d9e863cd3
commit
c687ab9ad1
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -57,3 +57,6 @@ docs/_build/
|
|||
|
||||
# PyBuilder
|
||||
target/
|
||||
|
||||
# Extras
|
||||
.idea/
|
||||
|
|
|
@ -80,7 +80,7 @@ export PYLAST_API_SECRET=TODO_ENTER_YOURS_HERE
|
|||
|
||||
To run all unit and integration tests:
|
||||
```sh
|
||||
pip install pytest flaky
|
||||
pip install pytest flaky mock
|
||||
py.test
|
||||
```
|
||||
|
||||
|
|
|
@ -3331,24 +3331,6 @@ class User(_BaseObject, _Chartable):
|
|||
|
||||
return seq
|
||||
|
||||
def get_neighbours(self, limit=50, cacheable=True):
|
||||
"""Returns a list of the user's friends."""
|
||||
|
||||
params = self._get_params()
|
||||
if limit:
|
||||
params['limit'] = limit
|
||||
|
||||
doc = self._request(
|
||||
self.ws_prefix + '.getNeighbours', cacheable, params)
|
||||
|
||||
seq = []
|
||||
names = _extract_all(doc, 'name')
|
||||
|
||||
for name in names:
|
||||
seq.append(User(name, self.network))
|
||||
|
||||
return seq
|
||||
|
||||
def get_past_events(self, limit=50, cacheable=False):
|
||||
"""
|
||||
Returns a sequence of Event objects
|
||||
|
|
|
@ -929,7 +929,6 @@ class TestPyLast(unittest.TestCase):
|
|||
# Skip the first one because Last.fm API is broken
|
||||
# self.helper_validate_cacheable(lastfm_user, "get_friends")
|
||||
self.helper_validate_cacheable(lastfm_user, "get_loved_tracks")
|
||||
self.helper_validate_cacheable(lastfm_user, "get_neighbours")
|
||||
self.helper_validate_cacheable(lastfm_user, "get_past_events")
|
||||
self.helper_validate_cacheable(lastfm_user, "get_recent_tracks")
|
||||
self.helper_validate_cacheable(lastfm_user, "get_recommended_artists")
|
||||
|
|
Loading…
Reference in a new issue