lots a small stuff
This commit is contained in:
@@ -99,7 +99,7 @@ def get_token(code): # pragma: no cover
|
||||
return [thetoken,expires_in,user_id]
|
||||
|
||||
# Make authorization URL including random string
|
||||
def make_authorization_url():
|
||||
def make_authorization_url(): # pragma: no cover
|
||||
# Generate a random string for the state parameter
|
||||
# Save it for use later to prevent xsrf attacks
|
||||
state = str(uuid4())
|
||||
@@ -145,7 +145,7 @@ def get_polar_notifications():
|
||||
from rowers.rower_rules import ispromember
|
||||
|
||||
def get_all_new_workouts(available_data,testing=False):
|
||||
for record in available_data:
|
||||
for record in available_data: # pragma: no cover
|
||||
if testing:
|
||||
print(record)
|
||||
if record['data-type'] == 'EXERCISE':
|
||||
@@ -159,7 +159,7 @@ def get_all_new_workouts(available_data,testing=False):
|
||||
except Rower.DoesNotExist:
|
||||
pass
|
||||
|
||||
return 1
|
||||
return 1 # pragma: no cover
|
||||
|
||||
|
||||
def get_polar_workouts(user):
|
||||
@@ -245,7 +245,7 @@ def get_polar_workouts(user):
|
||||
# commit transaction
|
||||
requests.put(url, headers=headers)
|
||||
|
||||
return exercise_list
|
||||
return exercise_list # pragma: no cover
|
||||
|
||||
def get_polar_user_info(user,physical=False): # pragma: no cover
|
||||
r = Rower.objects.get(user=user)
|
||||
|
||||
Reference in New Issue
Block a user