diff options
| author | rr- <rr-@sakuya.pl> | 2016-05-30 22:20:42 +0200 |
|---|---|---|
| committer | rr- <rr-@sakuya.pl> | 2016-05-30 22:54:33 +0200 |
| commit | 8d1e23aa63370ed2e14deaa8fef9eca11ad31eae (patch) | |
| tree | a25e91c491e1de4436a8a5428f14f201f697a54b /server/szurubooru/tests/api/test_post_retrieving.py | |
| parent | d0314813cb284cbe50101fcea32bf7126a59ba74 (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.py | 7 |
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): |