Remove references to nonexistent API call, fix missing dependency in README
This commit is contained in:
parent
3d9e863cd3
commit
c687ab9ad1
5
.gitignore
vendored
5
.gitignore
vendored
|
@ -56,4 +56,7 @@ coverage.xml
|
||||||
docs/_build/
|
docs/_build/
|
||||||
|
|
||||||
# PyBuilder
|
# PyBuilder
|
||||||
target/
|
target/
|
||||||
|
|
||||||
|
# Extras
|
||||||
|
.idea/
|
||||||
|
|
|
@ -80,7 +80,7 @@ export PYLAST_API_SECRET=TODO_ENTER_YOURS_HERE
|
||||||
|
|
||||||
To run all unit and integration tests:
|
To run all unit and integration tests:
|
||||||
```sh
|
```sh
|
||||||
pip install pytest flaky
|
pip install pytest flaky mock
|
||||||
py.test
|
py.test
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -3331,24 +3331,6 @@ class User(_BaseObject, _Chartable):
|
||||||
|
|
||||||
return seq
|
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):
|
def get_past_events(self, limit=50, cacheable=False):
|
||||||
"""
|
"""
|
||||||
Returns a sequence of Event objects
|
Returns a sequence of Event objects
|
||||||
|
|
|
@ -929,7 +929,6 @@ class TestPyLast(unittest.TestCase):
|
||||||
# Skip the first one because Last.fm API is broken
|
# 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_friends")
|
||||||
self.helper_validate_cacheable(lastfm_user, "get_loved_tracks")
|
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_past_events")
|
||||||
self.helper_validate_cacheable(lastfm_user, "get_recent_tracks")
|
self.helper_validate_cacheable(lastfm_user, "get_recent_tracks")
|
||||||
self.helper_validate_cacheable(lastfm_user, "get_recommended_artists")
|
self.helper_validate_cacheable(lastfm_user, "get_recommended_artists")
|
||||||
|
|
Loading…
Reference in a new issue