Fixing the confirm delete unit test
authorChristopher Allan Webber <cwebber@dustycloud.org>
Tue, 6 Sep 2011 04:20:50 +0000 (23:20 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Tue, 6 Sep 2011 04:20:50 +0000 (23:20 -0500)
Now it's updated for the new checkbox-for-confirm code.

mediagoblin/tests/test_submission.py

index b70138394fe4d8f56118f2f37f57c66b301b3a94..007c034856b2f3412dd7257ad885f2ffa34edd38 100644 (file)
@@ -178,7 +178,8 @@ class TestSubmission:
                            # No work: user=media.uploader().username,
                            user=self.test_user['username'],
                            media=media['_id']),
-            {'confirm': 'False'})
+            # no value means no confirm
+            {})
 
         response.follow()
 
@@ -197,7 +198,7 @@ class TestSubmission:
                            # No work: user=media.uploader().username,
                            user=self.test_user['username'],
                            media=media['_id']),
-            {'confirm': 'True'})
+            {'confirm': 'y'})
 
         response.follow()