Merge branch 'feature/windows' into develop
This commit is contained in:
@@ -145,8 +145,14 @@ def createrunkeeperworkoutdata(w):
|
|||||||
except KeyError:
|
except KeyError:
|
||||||
haslatlon = 0
|
haslatlon = 0
|
||||||
|
|
||||||
|
t = t.tolist()
|
||||||
|
hr = hr.tolist()
|
||||||
|
d = d.tolist()
|
||||||
|
|
||||||
# path data
|
# path data
|
||||||
if haslatlon:
|
if haslatlon:
|
||||||
|
lat = lat.tolist()
|
||||||
|
lon = lon.tolist()
|
||||||
locdata = []
|
locdata = []
|
||||||
for e in zip(t,lat,lon):
|
for e in zip(t,lat,lon):
|
||||||
point = {'timestamp':e[0],
|
point = {'timestamp':e[0],
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ nu = datetime.datetime.now()
|
|||||||
|
|
||||||
|
|
||||||
#@pytest.mark.django_db
|
#@pytest.mark.django_db
|
||||||
|
@override_settings(TESTING=True)
|
||||||
class PlotTests(TestCase):
|
class PlotTests(TestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
redis_connection.publish('tasks','KILL')
|
redis_connection.publish('tasks','KILL')
|
||||||
|
|||||||
BIN
rowers/tests/testdata/testdata.csv.gz
vendored
BIN
rowers/tests/testdata/testdata.csv.gz
vendored
Binary file not shown.
@@ -302,8 +302,7 @@ def myqueue(queue,function,*args,**kwargs):
|
|||||||
|
|
||||||
if settings.TESTING:
|
if settings.TESTING:
|
||||||
return MockJob()
|
return MockJob()
|
||||||
|
elif settings.CELERY:
|
||||||
if settings.CELERY:
|
|
||||||
kwargs['debug'] = True
|
kwargs['debug'] = True
|
||||||
|
|
||||||
job = function.delay(*args,**kwargs)
|
job = function.delay(*args,**kwargs)
|
||||||
|
|||||||
Reference in New Issue
Block a user