projects
/
mediagoblin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
001a50a
)
fixed tests and defaults
author
Rodney Ewing
<ewing.rj@gmail.com>
Fri, 14 Jun 2013 00:17:33 +0000
(17:17 -0700)
committer
Rodney Ewing
<ewing.rj@gmail.com>
Mon, 26 Aug 2013 13:33:29 +0000
(06:33 -0700)
mediagoblin/tests/test_submission.py
patch
|
blob
|
blame
|
history
diff --git
a/mediagoblin/tests/test_submission.py
b/mediagoblin/tests/test_submission.py
index e45ed36b71c686b26f1526ab0446935702f1b075..f6ecd58aaf0697919931dbf6a34272f0c63d2857 100644
(file)
--- 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: