summaryrefslogtreecommitdiff
path: root/server/szurubooru/tests/api/test_post_retrieving.py
diff options
context:
space:
mode:
authorrr- <rr-@sakuya.pl>2016-05-30 22:20:42 +0200
committerrr- <rr-@sakuya.pl>2016-05-30 22:54:33 +0200
commit8d1e23aa63370ed2e14deaa8fef9eca11ad31eae (patch)
treea25e91c491e1de4436a8a5428f14f201f697a54b /server/szurubooru/tests/api/test_post_retrieving.py
parentd0314813cb284cbe50101fcea32bf7126a59ba74 (diff)
server/general: flatten responses
Diffstat (limited to 'server/szurubooru/tests/api/test_post_retrieving.py')
-rw-r--r--server/szurubooru/tests/api/test_post_retrieving.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/server/szurubooru/tests/api/test_post_retrieving.py b/server/szurubooru/tests/api/test_post_retrieving.py
index 3ceff64..41c6ead 100644
--- a/server/szurubooru/tests/api/test_post_retrieving.py
+++ b/server/szurubooru/tests/api/test_post_retrieving.py
@@ -79,10 +79,9 @@ def test_retrieving_single(test_ctx):
result = test_ctx.detail_api.get(
test_ctx.context_factory(
user=test_ctx.user_factory(rank=db.User.RANK_REGULAR)), 1)
- assert 'post' in result
- assert 'id' in result['post']
- assert 'snapshots' in result['post']
- assert 'comments' in result['post']
+ assert 'id' in result
+ assert 'snapshots' in result
+ assert 'comments' in result
def test_trying_to_retrieve_single_non_existing(test_ctx):
with pytest.raises(posts.PostNotFoundError):