fixed tests and defaults
authorRodney Ewing <ewing.rj@gmail.com>
Fri, 14 Jun 2013 00:17:33 +0000 (17:17 -0700)
committerRodney Ewing <ewing.rj@gmail.com>
Mon, 26 Aug 2013 13:33:29 +0000 (06:33 -0700)
mediagoblin/tests/test_submission.py

index e45ed36b71c686b26f1526ab0446935702f1b075..f6ecd58aaf0697919931dbf6a34272f0c63d2857 100644 (file)
@@ -212,6 +212,14 @@ class TestSubmission:
         # Shouldn't have uploaded
         assert self.test_user.uploaded == 499
 
+        # Reload user
+        self.test_user = User.query.filter_by(
+            username=self.test_user.username
+        ).first()
+
+        # Shouldn't have uploaded
+        assert self.test_user.uploaded == 499
+
     def check_media(self, request, find_data, count=None):
         media = MediaEntry.query.filter_by(**find_data)
         if count is not None: