removing dataprepnodjango
This commit is contained in:
@@ -495,21 +495,21 @@ class AsyncTaskTests(TestCase):
|
|||||||
|
|
||||||
self.assertEqual(res,1)
|
self.assertEqual(res,1)
|
||||||
|
|
||||||
@patch('rowers.dataprepnodjango.create_engine')
|
@patch('rowers.dataprep.create_engine')
|
||||||
def test_handle_updateergcp(self,mocked_sqlalchemy):
|
def test_handle_updateergcp(self,mocked_sqlalchemy):
|
||||||
f1 = get_random_file()['filename']
|
f1 = get_random_file()['filename']
|
||||||
res = tasks.handle_updateergcp(1,[f1])
|
res = tasks.handle_updateergcp(1,[f1])
|
||||||
self.assertEqual(res,1)
|
self.assertEqual(res,1)
|
||||||
|
|
||||||
|
|
||||||
@patch('rowers.dataprepnodjango.getsmallrowdata_db')
|
@patch('rowers.dataprep.getsmallrowdata_db')
|
||||||
def test_handle_updatecp(self,mocked_getsmallrowdata_db_updatecp):
|
def test_handle_updatecp(self,mocked_getsmallrowdata_db_updatecp):
|
||||||
rower_id = 1
|
rower_id = 1
|
||||||
workoutids = [1]
|
workoutids = [1]
|
||||||
res = tasks.handle_updatecp(rower_id,workoutids)
|
res = tasks.handle_updatecp(rower_id,workoutids)
|
||||||
self.assertEqual(res,1)
|
self.assertEqual(res,1)
|
||||||
|
|
||||||
@patch('rowers.dataprepnodjango.getsmallrowdata_db')
|
@patch('rowers.dataprep.getsmallrowdata_db')
|
||||||
def test_handle_setcp(self,mocked_getsmallrowdata_db_setcp):
|
def test_handle_setcp(self,mocked_getsmallrowdata_db_setcp):
|
||||||
strokesdf = pd.read_csv('rowers/tests/testdata/uhfull.csv')
|
strokesdf = pd.read_csv('rowers/tests/testdata/uhfull.csv')
|
||||||
filename = 'rowers/tests/testdata/temp/pq.gz'
|
filename = 'rowers/tests/testdata/temp/pq.gz'
|
||||||
@@ -521,7 +521,7 @@ class AsyncTaskTests(TestCase):
|
|||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@patch('rowers.dataprepnodjango.getsmallrowdata_db')
|
@patch('rowers.dataprep.getsmallrowdata_db')
|
||||||
def test_handle_update_wps(self,mocked_getsmallrowdata_db_wps):
|
def test_handle_update_wps(self,mocked_getsmallrowdata_db_wps):
|
||||||
ids = [1,2,3]
|
ids = [1,2,3]
|
||||||
|
|
||||||
|
|||||||
@@ -130,7 +130,7 @@ class CPChartTest(TestCase):
|
|||||||
|
|
||||||
# add some tests of complex form data (no hr, no spm, zero spm, etc)
|
# add some tests of complex form data (no hr, no spm, zero spm, etc)
|
||||||
|
|
||||||
@patch('rowers.dataprepnodjango.create_engine')
|
@patch('rowers.dataprep.create_engine')
|
||||||
def test_agerecords(self, mock_sqlalchemy):
|
def test_agerecords(self, mock_sqlalchemy):
|
||||||
# update_records(url='rowers/tests/c2worldrecords.html',verbose=False)
|
# update_records(url='rowers/tests/c2worldrecords.html',verbose=False)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user