aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests/test_api.py
diff options
context:
space:
mode:
authorJessica Tallon <tsyesika@tsyesika.se>2016-03-01 11:58:38 +0000
committerJessica Tallon <tsyesika@tsyesika.se>2016-03-01 12:04:08 +0000
commit161bc6b2c18f2d20eb759725b2df7fc7ac4a2728 (patch)
tree7e10e43dcc6fcd85e8f9e366f2e10dd0152745bc /mediagoblin/tests/test_api.py
parent1db8690fe9dc625bc648e04493d075cad76689cc (diff)
downloadmediagoblin-161bc6b2c18f2d20eb759725b2df7fc7ac4a2728.tar.lz
mediagoblin-161bc6b2c18f2d20eb759725b2df7fc7ac4a2728.tar.xz
mediagoblin-161bc6b2c18f2d20eb759725b2df7fc7ac4a2728.zip
Fix #5376 - Ensure links have correct ID
This ensures that links to comments have the correct ID (the ID of the Comment object) as well as fixing deletion on reports and fixing a few other little things. I hope this fixes the #5376 issue, though cannot reproduce so unable to confirm.
Diffstat (limited to 'mediagoblin/tests/test_api.py')
-rw-r--r--mediagoblin/tests/test_api.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/tests/test_api.py b/mediagoblin/tests/test_api.py
index 33b93208..90873cb9 100644
--- a/mediagoblin/tests/test_api.py
+++ b/mediagoblin/tests/test_api.py
@@ -317,7 +317,7 @@ class TestAPI(object):
# Find the objects in the database
media = MediaEntry.query.filter_by(public_id=data["object"]["id"]).first()
- comment = media.get_comments()[0]
+ comment = media.get_comments()[0].comment()
# Tests that it matches in the database
assert comment.actor == self.user.id