Fix pep8-naming

This commit is contained in:
Hugo 2018-05-11 10:39:16 +03:00
parent 7ac0cbb898
commit 1d5e965183
2 changed files with 6 additions and 6 deletions

View file

@ -108,6 +108,9 @@ SCROBBLE_MODE_LOVED = "L"
SCROBBLE_MODE_BANNED = "B"
SCROBBLE_MODE_SKIPPED = "S"
# Delay time in seconds from section 4.4 of https://www.last.fm/api/tos
DELAY_TIME = 0.2
# Python >3.4 and >2.7.9 has sane defaults
SSL_CONTEXT = ssl.create_default_context()
@ -254,9 +257,6 @@ class _Network(object):
"""
Makes sure that web service calls are at least 0.2 seconds apart.
"""
# Delay time in seconds from section 4.4 of https://www.last.fm/api/tos
DELAY_TIME = 0.2
now = time.time()
time_since_last = now - self.last_call_time

View file

@ -54,11 +54,11 @@ class TestPyLastWithLastFm(PyLastTestCase):
self.username = self.__class__.secrets["username"]
password_hash = self.__class__.secrets["password_hash"]
API_KEY = self.__class__.secrets["api_key"]
API_SECRET = self.__class__.secrets["api_secret"]
api_key = self.__class__.secrets["api_key"]
api_secret = self.__class__.secrets["api_secret"]
self.network = pylast.LastFMNetwork(
api_key=API_KEY, api_secret=API_SECRET,
api_key=api_key, api_secret=api_secret,
username=self.username, password_hash=password_hash)
def helper_is_thing_hashable(self, thing):