diff options
Diffstat (limited to 'server/szurubooru/tests/api/test_post_featuring.py')
| -rw-r--r-- | server/szurubooru/tests/api/test_post_featuring.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/szurubooru/tests/api/test_post_featuring.py b/server/szurubooru/tests/api/test_post_featuring.py index c2822f8..a0a82c7 100644 --- a/server/szurubooru/tests/api/test_post_featuring.py +++ b/server/szurubooru/tests/api/test_post_featuring.py @@ -18,6 +18,7 @@ def test_featuring(user_factory, post_factory, context_factory): auth_user = user_factory(rank=db.User.RANK_REGULAR) post = post_factory(id=1) db.session.add(post) + db.session.flush() assert not posts.get_post_by_id(1).is_featured with patch('szurubooru.func.posts.serialize_post'), \ patch('szurubooru.func.snapshots.modify'): |