initial text of partnership page
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
from django.test import TestCase, Client,override_settings
|
||||
from django.core.management import call_command
|
||||
from django.utils.six import StringIO
|
||||
from django.test.client import RequestFactory
|
||||
from .views import checkworkoutuser,c2_open
|
||||
from rowers.models import Workout, User, Rower, WorkoutForm,RowerForm,GraphImage
|
||||
@@ -43,6 +45,12 @@ class DjangoTestCase(TestCase, MockTestCase):
|
||||
|
||||
# Create your tests here.
|
||||
|
||||
class EmailProcessTest(TestCase):
|
||||
def test_emailprocessing(self):
|
||||
out = StringIO()
|
||||
call_command('processemail', stdout=out)
|
||||
self.assertIn('Successfully processed email attachments',out.getvalue())
|
||||
|
||||
class C2Objects(DjangoTestCase):
|
||||
def test_strokedata(self):
|
||||
with open('rowers/testdata/c2stroketestdata.txt','r') as infile:
|
||||
|
||||
Reference in New Issue
Block a user