running tests, fixing tiny bugs
This commit is contained in:
@@ -3974,8 +3974,11 @@ class SyncRecord(models.Model):
|
|||||||
intervalsid = models.CharField(unique=True, null=True, default=None, max_length=100)
|
intervalsid = models.CharField(unique=True, null=True, default=None, max_length=100)
|
||||||
|
|
||||||
def save(self, *args, **kwargs):
|
def save(self, *args, **kwargs):
|
||||||
if self.workout:
|
try:
|
||||||
self.rower = self.workout.user
|
if self.workout:
|
||||||
|
self.rower = self.workout.user
|
||||||
|
except:
|
||||||
|
pass
|
||||||
return super(SyncRecord, self).save(*args, **kwargs)
|
return super(SyncRecord, self).save(*args, **kwargs)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
|
|||||||
@@ -986,6 +986,7 @@ def mocked_requests(*args, **kwargs):
|
|||||||
def __init__(self, json_data, status_code):
|
def __init__(self, json_data, status_code):
|
||||||
self.json_data = json_data
|
self.json_data = json_data
|
||||||
self.status_code = status_code
|
self.status_code = status_code
|
||||||
|
self.reason = 'mock reason'
|
||||||
self.ok = True
|
self.ok = True
|
||||||
self.headers = {
|
self.headers = {
|
||||||
'Location':'MockLocation',
|
'Location':'MockLocation',
|
||||||
|
|||||||
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
Binary file not shown.
Reference in New Issue
Block a user