staticfiles to static
This commit is contained in:
@@ -14,6 +14,8 @@ from django.utils.six import BytesIO
|
||||
from PIL import Image
|
||||
from io import StringIO
|
||||
|
||||
import warnings
|
||||
warnings.simplefilter("error")
|
||||
|
||||
def create_image(storage, filename, size=(100, 100), image_mode='RGB', image_format='PNG'):
|
||||
"""
|
||||
@@ -317,13 +319,15 @@ class WorkoutViewTest(TestCase):
|
||||
self.assertEqual(response.status_code,200)
|
||||
|
||||
form_data = {
|
||||
'xaxis':'distance',
|
||||
'xaxis':'time',
|
||||
'yaxis1':'power',
|
||||
'yaxis2':'driveenergy',
|
||||
'yaxis3':'hr',
|
||||
'yaxis4':'strokedistance'
|
||||
'yaxis4':'spm'
|
||||
}
|
||||
|
||||
|
||||
|
||||
response = self.c.post(url,form_data)
|
||||
self.assertEqual(response.status_code,200)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user