Commit eabdb278 by Dave St.Germain

updated tests to reflect fixture

parent 8ce8634b
...@@ -88,13 +88,13 @@ class CreateProfileTest(TestCase): ...@@ -88,13 +88,13 @@ class CreateProfileTest(TestCase):
Tests the creation of a profile Tests the creation of a profile
""" """
result = api.create_profile(constants.PROFILE_DICT_DESKTOP) result = api.create_profile(constants.PROFILE_DICT_DESKTOP)
profiles = Profile.objects.all() profiles = list(Profile.objects.all())
self.assertEqual(len(profiles), 1) self.assertEqual(len(profiles), 6)
self.assertEqual( self.assertEqual(
profiles[0].profile_name, profiles[-1].profile_name,
constants.PROFILE_DICT_DESKTOP.get('profile_name') constants.PROFILE_DICT_DESKTOP.get('profile_name')
) )
self.assertEqual(len(profiles), 1) self.assertEqual(len(profiles), 6)
self.assertEqual("desktop", result) self.assertEqual("desktop", result)
@data( @data(
......
...@@ -404,7 +404,6 @@ class VideoListTest(APIAuthTestCase): ...@@ -404,7 +404,6 @@ class VideoListTest(APIAuthTestCase):
Test that youtube is a valid profile. Test that youtube is a valid profile.
""" """
url = reverse('video-list') url = reverse('video-list')
Profile.objects.create(**constants.PROFILE_DICT_YOUTUBE)
video_data = dict( video_data = dict(
encoded_videos=[ encoded_videos=[
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment