summaryrefslogtreecommitdiff
path: root/workshop_app/tests
diff options
context:
space:
mode:
authorAkshen2017-09-20 15:17:28 +0530
committerAkshen2017-09-20 15:17:28 +0530
commit71b2b649629de30ef133ce2dd9c8e855abe66a31 (patch)
treeefa3a7c6efde3f2eb3e6ddac28cffee50cfbc644 /workshop_app/tests
parent01eafa2acd049473bfb21a4db8793cfacc4d09b7 (diff)
downloadworkshop_booking-71b2b649629de30ef133ce2dd9c8e855abe66a31.tar.gz
workshop_booking-71b2b649629de30ef133ce2dd9c8e855abe66a31.tar.bz2
workshop_booking-71b2b649629de30ef133ce2dd9c8e855abe66a31.zip
Fixes State Field Bug
- State field bug in registration form fixed - Test cases updated for the same - my_workshops page titles changed
Diffstat (limited to 'workshop_app/tests')
-rw-r--r--workshop_app/tests/test_models.py10
-rw-r--r--workshop_app/tests/test_views.py10
2 files changed, 10 insertions, 10 deletions
diff --git a/workshop_app/tests/test_models.py b/workshop_app/tests/test_models.py
index 44108ad..1be74a0 100644
--- a/workshop_app/tests/test_models.py
+++ b/workshop_app/tests/test_models.py
@@ -26,12 +26,12 @@ def setUpModule():
instructor_profile = Profile.objects.create(user=testUser2, position='instructor',
department='computer engineering', institute='ace', phone_number='1122334456',
- title='Doctor', source='Google', location='powai', state='IN-MH',
+ title='Doctor', how_did_you_hear_about_us='Google', location='powai', state='IN-MH',
is_email_verified=1)
coordinator_profile = Profile.objects.create(user=demoUser2, position='coordinator',
department='IT', institute='iit', phone_number='1122334456',location='powai',
- title='Doctor', source='Google', state='IN-MH',
+ title='Doctor', how_did_you_hear_about_us='Google', state='IN-MH',
is_email_verified=1)
workshoptype1 = WorkshopType.objects.create(workshoptype_name='ISCP',
@@ -78,12 +78,12 @@ class ProfileModelTest(TestCase):
self.instructor_profile1 = Profile.objects.create(user=self.testuser1,
position='instructor', department='computer engineering',
institute='ace', phone_number='1123323344',
- title='Doctor', source='Google', location='powai', state='IN-MH',
+ title='Doctor', how_did_you_hear_about_us='Google', location='powai', state='IN-MH',
is_email_verified=1)
self.coordinator_profile1 = Profile.objects.create(user=self.demouser1, position='coordinator',
department='IT', institute='iit', phone_number='1122334455',
- title='Doctor', source='Google', location='powai', state='IN-MH',
+ title='Doctor', how_did_you_hear_about_us='Google', location='powai', state='IN-MH',
is_email_verified=1)
def test_profile_model(self):
@@ -93,7 +93,7 @@ class ProfileModelTest(TestCase):
self.assertEqual(self.coordinator_profile1.position,'coordinator')
self.assertEqual(self.coordinator_profile1.location,'powai')
self.assertEqual(self.instructor_profile1.location,'powai')
- self.assertEqual(self.coordinator_profile1.source,'Google')
+ self.assertEqual(self.coordinator_profile1.how_did_you_hear_about_us,'Google')
class WorkshopTypeModelTest(TestCase):
diff --git a/workshop_app/tests/test_views.py b/workshop_app/tests/test_views.py
index ce5e4f2..9d65ba8 100644
--- a/workshop_app/tests/test_views.py
+++ b/workshop_app/tests/test_views.py
@@ -36,7 +36,7 @@ class TestProfile(TestCase):
position='instructor',
phone_number='1122993388',
location='mumbai',
- source='Google',
+ how_did_you_hear_about_us='Google',
state='IN-MH',
is_email_verified=1
)
@@ -139,7 +139,7 @@ class TestWorkshopCreation(TestCase):
title='Doctor',
institute='IIT',
position='instructor',
- source='Google',
+ how_did_you_hear_about_us='Google',
phone_number='1122993388',
location='mumbai',
state='IN-MH',
@@ -166,7 +166,7 @@ class TestWorkshopCreation(TestCase):
institute='ace',
position='coordinator',
title='Mr',
- source='Google',
+ how_did_you_hear_about_us='Google',
location='mumbai',
state='IN-MH',
phone_number='1122993388',
@@ -240,7 +240,7 @@ class TestWorkshopDashboard(TestCase):
institute='IIT',
position='instructor',
phone_number='1122993388',
- source='Google',
+ how_did_you_hear_about_us='Google',
location='mumbai',
state='IN-MH',
title='Mr',
@@ -357,4 +357,4 @@ class TestWorkshopStats(TestCase):
)
self.assertEqual(response.status_code, 200)
self.assertEqual(response.get('Content-Disposition'),'attachment;\
- filename="records_from_2017-01-01_to_2017-12-31.csv"') \ No newline at end of file
+ filename="records_from_2017-01-01_to_2017-12-31.csv"')