Private
Public Access
1
0

Merge branch 'feature/windows' into develop

This commit is contained in:
Sander Roosendaal
2019-03-08 17:50:24 +01:00
4 changed files with 8 additions and 2 deletions

View File

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

View File

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

Binary file not shown.

View File

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