aboutsummaryrefslogtreecommitdiff
path: root/server/szurubooru/tests/api/test_post_retrieving.py
diff options
context:
space:
mode:
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):

© 2015 - 2026 Jakob L. Kreuze