This commit is contained in:
Laura Stone 2016-10-12 23:11:00 +00:00 committed by GitHub
commit 0a097252bf
4 changed files with 5 additions and 21 deletions

5
.gitignore vendored
View file

@ -56,4 +56,7 @@ coverage.xml
docs/_build/
# PyBuilder
target/
target/
# Extras
.idea/

View file

@ -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
```

View file

@ -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

View file

@ -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")