[extensions-web/django/upgrade-1.8: 6/7] Fixed unit test. Was broken since commit 53a7d1c3



commit c23c83222b08918f814e81d153cf16b9d7f75492
Author: Yuri Konotopov <ykonotopov gmail com>
Date:   Sun Oct 23 02:35:21 2016 +0300

    Fixed unit test. Was broken since commit 53a7d1c3

 sweettooth/review/tests.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/sweettooth/review/tests.py b/sweettooth/review/tests.py
index 0e9d6d9..807a97b 100644
--- a/sweettooth/review/tests.py
+++ b/sweettooth/review/tests.py
@@ -17,18 +17,18 @@ class DiffViewTest(BasicUserTestCase, TestCase):
         extension = models.Extension.objects.create_from_metadata(metadata, creator=self.user)
         version1 = models.ExtensionVersion.objects.create(extension=extension,
                                                           source=File(ContentFile("doot doo"), name="aa"),
-                                                          status=models.STATUS_NEW)
+                                                          status=models.STATUS_UNREVIEWED)
         self.assertEquals(None, get_old_version(version1))
 
         # This one is broken...
         version2 = models.ExtensionVersion.objects.create(extension=extension,
                                                           source="",
-                                                          status=models.STATUS_NEW)
+                                                          status=models.STATUS_UNREVIEWED)
         self.assertEquals(version1, get_old_version(version2))
 
         version3 = models.ExtensionVersion.objects.create(extension=extension,
                                                           source=File(ContentFile("doot doo"), name="bb"),
-                                                          status=models.STATUS_NEW)
+                                                          status=models.STATUS_UNREVIEWED)
         self.assertEquals(version1, get_old_version(version3))
 
 class TestAutoApproveLogic(TestCase):


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]