moved test files
This commit is contained in:
@@ -311,7 +311,7 @@ class DataTest(TestCase):
|
||||
self.assertFalse(form.is_valid())
|
||||
|
||||
def test_painsled(self):
|
||||
filename = 'C:\\python\\rowingdata\\testdata\\testdata.csv'
|
||||
filename = 'rowers/testdata/testdata.csv'
|
||||
f = open(filename,'rb')
|
||||
file_data = {'file': SimpleUploadedFile(f.name, f.read())}
|
||||
form_data = {
|
||||
@@ -402,7 +402,7 @@ class ViewTest(TestCase):
|
||||
def test_upload_view_sled(self):
|
||||
self.c.login(username='john',password='koeinsloot')
|
||||
|
||||
filename = 'C:\\python\\rowingdata\\testdata\\testdata.csv'
|
||||
filename = 'rowers/testdata/testdata.csv'
|
||||
f = open(filename,'rb')
|
||||
file_data = {'file': f}
|
||||
form_data = {
|
||||
@@ -468,7 +468,7 @@ class ViewTest(TestCase):
|
||||
def test_upload_view_sled_negativetime(self):
|
||||
self.c.login(username='john',password='koeinsloot')
|
||||
|
||||
filename = 'C:\\python\\rowingdata\\testdata\\tim.csv'
|
||||
filename = 'rowers/testdata/tim.csv'
|
||||
f = open(filename,'rb')
|
||||
file_data = {'file': f}
|
||||
form_data = {
|
||||
@@ -509,7 +509,7 @@ class ViewTest(TestCase):
|
||||
def test_upload_view_sled_noname(self):
|
||||
self.c.login(username='john',password='koeinsloot')
|
||||
|
||||
filename = 'C:\\python\\rowingdata\\testdata\\testdata.csv'
|
||||
filename = 'rowers/testdata/testdata.csv'
|
||||
f = open(filename,'rb')
|
||||
file_data = {'file': f}
|
||||
form_data = {
|
||||
@@ -542,7 +542,7 @@ class ViewTest(TestCase):
|
||||
def test_upload_view_TCX_CN(self):
|
||||
self.c.login(username='john',password='koeinsloot')
|
||||
|
||||
filename = 'C:\\python\\rowingdata\\testdata\\crewnerddata.tcx'
|
||||
filename = 'rowers/testdata/crewnerddata.tcx'
|
||||
f = open(filename,'rb')
|
||||
file_data = {'file': f}
|
||||
|
||||
@@ -565,7 +565,7 @@ class ViewTest(TestCase):
|
||||
|
||||
self.assertEqual(response.status_code, 200)
|
||||
|
||||
filename = 'C:\\python\\rowingdata\\testdata\\crewnerddata.CSV'
|
||||
filename = 'rowers/testdata/crewnerddata.CSV'
|
||||
f = open(filename,'rb')
|
||||
file_data = {'file': f}
|
||||
form_data = {}
|
||||
@@ -585,7 +585,7 @@ class ViewTest(TestCase):
|
||||
def test_upload_view_TCX_SpeedCoach2(self):
|
||||
self.c.login(username='john',password='koeinsloot')
|
||||
|
||||
filename = 'C:\\python\\rowingdata\\testdata\\Speedcoach2example.csv'
|
||||
filename = 'rowers/testdata/Speedcoach2example.csv'
|
||||
f = open(filename,'rb')
|
||||
file_data = {'file': f}
|
||||
|
||||
@@ -615,7 +615,7 @@ class ViewTest(TestCase):
|
||||
def test_upload_view_TCX_SpeedCoach2(self):
|
||||
self.c.login(username='john',password='koeinsloot')
|
||||
|
||||
filename = 'C:\\python\\rowingdata\\testdata\\Speedcoach2example.csv'
|
||||
filename = 'rowers/testdata/Speedcoach2example.csv'
|
||||
f = open(filename,'rb')
|
||||
file_data = {'file': f}
|
||||
|
||||
@@ -647,7 +647,7 @@ class ViewTest(TestCase):
|
||||
def test_upload_view_TCX_SpeedCoach2(self):
|
||||
self.c.login(username='john',password='koeinsloot')
|
||||
|
||||
filename = 'C:\\python\\rowingdata\\testdata\\speedcoach3test3.csv'
|
||||
filename = 'rowers/testdata/speedcoach3test3.csv'
|
||||
f = open(filename,'rb')
|
||||
file_data = {'file': f}
|
||||
|
||||
@@ -677,7 +677,7 @@ class ViewTest(TestCase):
|
||||
def test_upload_view_SpeedCoach2v127(self):
|
||||
self.c.login(username='john',password='koeinsloot')
|
||||
|
||||
filename = 'C:\\python\\rowingdata\\testdata\\SpeedCoach2Linkv1.27.csv'
|
||||
filename = 'rowers/testdata/SpeedCoach2Linkv1.27.csv'
|
||||
f = open(filename,'rb')
|
||||
file_data = {'file': f}
|
||||
|
||||
@@ -708,7 +708,7 @@ class ViewTest(TestCase):
|
||||
def test_upload_view_SpeedCoach2v127intervals(self):
|
||||
self.c.login(username='john',password='koeinsloot')
|
||||
|
||||
filename = 'C:\\python\\rowingdata\\testdata\\SpeedCoach2Link_interval.csv'
|
||||
filename = 'rowers/testdata/SpeedCoach2Link_interval.csv'
|
||||
f = open(filename,'rb')
|
||||
file_data = {'file': f}
|
||||
|
||||
@@ -739,7 +739,7 @@ class ViewTest(TestCase):
|
||||
def test_upload_view_TCX_NoHR(self):
|
||||
self.c.login(username='john',password='koeinsloot')
|
||||
|
||||
filename = 'C:\\python\\rowingdata\\testdata\\NoHR.tcx'
|
||||
filename = 'rowers/testdata/NoHR.tcx'
|
||||
f = open(filename,'rb')
|
||||
file_data = {'file': f}
|
||||
|
||||
@@ -769,7 +769,7 @@ class ViewTest(TestCase):
|
||||
def test_upload_view_TCX_CN(self):
|
||||
self.c.login(username='john',password='koeinsloot')
|
||||
|
||||
filename = 'C:\\python\\rowingdata\\testdata\\rowinginmotionexample.tcx'
|
||||
filename = 'rowers/testdata/rowinginmotionexample.tcx'
|
||||
f = open(filename,'rb')
|
||||
file_data = {'file': f}
|
||||
form_data = {
|
||||
@@ -796,7 +796,7 @@ class ViewTest(TestCase):
|
||||
def test_upload_view_RP(self):
|
||||
self.c.login(username='john',password='koeinsloot')
|
||||
|
||||
filename = 'C:\\python\\rowingdata\\testdata\\RP_testdata.csv'
|
||||
filename = 'rowers/testdata/RP_testdata.csv'
|
||||
f = open(filename,'rb')
|
||||
file_data = {'file': f}
|
||||
form_data = {
|
||||
@@ -823,7 +823,7 @@ class ViewTest(TestCase):
|
||||
def test_upload_view_Mystery(self):
|
||||
self.c.login(username='john',password='koeinsloot')
|
||||
|
||||
filename = 'C:\\python\\rowingdata\\testdata\\mystery.csv'
|
||||
filename = 'rowers/testdata/mystery.csv'
|
||||
f = open(filename,'rb')
|
||||
file_data = {'file': f}
|
||||
form_data = {
|
||||
@@ -850,7 +850,7 @@ class ViewTest(TestCase):
|
||||
def test_upload_view_RP_interval(self):
|
||||
self.c.login(username='john',password='koeinsloot')
|
||||
|
||||
filename = 'C:\\python\\rowingdata\\testdata\\RP_interval.csv'
|
||||
filename = 'rowers/testdata/RP_interval.csv'
|
||||
f = open(filename,'rb')
|
||||
file_data = {'file': f}
|
||||
form_data = {
|
||||
@@ -878,7 +878,7 @@ class ViewTest(TestCase):
|
||||
def test_upload_view_sled_desktop(self):
|
||||
self.c.login(username='john',password='koeinsloot')
|
||||
|
||||
filename = 'C:\\python\\rowingdata\\testdata\\painsled_desktop_example.csv'
|
||||
filename = 'rowers/testdata/painsled_desktop_example.csv'
|
||||
f = open(filename,'rb')
|
||||
file_data = {'file': f}
|
||||
form_data = {
|
||||
@@ -905,7 +905,7 @@ class ViewTest(TestCase):
|
||||
def test_upload_view_sled_ergdata(self):
|
||||
self.c.login(username='john',password='koeinsloot')
|
||||
|
||||
filename = 'C:\\python\\rowingdata\\testdata\\ergdata_example.csv'
|
||||
filename = 'rowers/testdata/ergdata_example.csv'
|
||||
f = open(filename,'rb')
|
||||
file_data = {'file': f}
|
||||
form_data = {
|
||||
@@ -932,7 +932,7 @@ class ViewTest(TestCase):
|
||||
def test_upload_view_sled_boatcoach(self):
|
||||
self.c.login(username='john',password='koeinsloot')
|
||||
|
||||
filename = 'C:\\python\\rowingdata\\testdata\\boatcoach.csv'
|
||||
filename = 'rowers/testdata/boatcoach.csv'
|
||||
f = open(filename,'rb')
|
||||
file_data = {'file': f}
|
||||
form_data = {
|
||||
@@ -959,7 +959,7 @@ class ViewTest(TestCase):
|
||||
def test_upload_view_sled_ergstick(self):
|
||||
self.c.login(username='john',password='koeinsloot')
|
||||
|
||||
filename = 'C:\\python\\rowingdata\\testdata\\ergstick.csv'
|
||||
filename = 'rowers/testdata/ergstick.csv'
|
||||
f = open(filename,'rb')
|
||||
file_data = {'file': f}
|
||||
form_data = {
|
||||
@@ -986,7 +986,7 @@ class ViewTest(TestCase):
|
||||
# def test_upload_view_FIT_SpeedCoach2a(self):
|
||||
# self.c.login(username='john',password='koeinsloot')
|
||||
|
||||
# filename = 'C:\\python\\rowingdata\\testdata\\3x250m.fit'
|
||||
# filename = 'rowers/testdata/3x250m.fit'
|
||||
# with open(filename,'rb') as f:
|
||||
|
||||
# file_data = {'file': f}
|
||||
@@ -1023,7 +1023,7 @@ class subroutinetests(TestCase):
|
||||
'koeinsloot')
|
||||
r = Rower.objects.create(user=u)
|
||||
nu = datetime.datetime.now()
|
||||
filename = 'C:\\python\\rowingdata\\testdata\\testdata.csv'
|
||||
filename = 'rowers/testdata/testdata.csv'
|
||||
self.w = Workout.objects.create(name='testworkout',
|
||||
workouttype='On-water',
|
||||
user=r,date=nu.strftime('%Y-%m-%d'),
|
||||
@@ -1048,7 +1048,7 @@ class PlotTests(TestCase):
|
||||
'koeinsloot')
|
||||
r = Rower.objects.create(user=u)
|
||||
self.nu = datetime.datetime.now()
|
||||
filename = 'C:\\python\\rowingdata\\testdata\\testdata.csv'
|
||||
filename = 'rowers/testdata/testdata.csv'
|
||||
self.wotw = Workout.objects.create(name='testworkout',
|
||||
workouttype='On-water',
|
||||
user=r,date=self.nu.strftime('%Y-%m-%d'),
|
||||
|
||||
Reference in New Issue
Block a user