From: Rodney Ewing Date: Fri, 14 Jun 2013 00:17:33 +0000 (-0700) Subject: fixed tests and defaults X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=cc4457f4075e61ea62c422ada24901a6b8f6992d;p=mediagoblin.git fixed tests and defaults --- diff --git a/mediagoblin/tests/test_submission.py b/mediagoblin/tests/test_submission.py index e45ed36b..f6ecd58a 100644 --- a/mediagoblin/tests/test_submission.py +++ b/mediagoblin/tests/test_submission.py @@ -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: