aboutsummaryrefslogtreecommitdiff
path: root/server/szurubooru/tests/func/test_posts.py
diff options
context:
space:
mode:
authorrr-2016-08-02 12:44:38 +0200
committerrr-2016-08-02 12:44:38 +0200
commit5092c2c587b57a03782a43c38195449cba570215 (patch)
tree0aeb7a82094375c75140595fad870cb738a2f68c /server/szurubooru/tests/func/test_posts.py
parent67f803a2f25a5e3f1a117df0d266c4b50c5c2642 (diff)
server/posts: respect tag creating privilege
Diffstat (limited to 'server/szurubooru/tests/func/test_posts.py')
-rw-r--r--server/szurubooru/tests/func/test_posts.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/szurubooru/tests/func/test_posts.py b/server/szurubooru/tests/func/test_posts.py
index e83934b..fa7be21 100644
--- a/server/szurubooru/tests/func/test_posts.py
+++ b/server/szurubooru/tests/func/test_posts.py
@@ -190,7 +190,7 @@ def test_create_post(user_factory, fake_datetime):
unittest.mock.patch('szurubooru.func.posts.update_post_tags'), \
fake_datetime('1997-01-01'):
auth_user = user_factory()
- post = posts.create_post('content', ['tag'], auth_user)
+ post, new_tags = posts.create_post('content', ['tag'], auth_user)
assert post.creation_time == datetime.datetime(1997, 1, 1)
assert post.last_edit_time is None
posts.update_post_tags.assert_called_once_with(post, ['tag'])

© 2015 - 2026 Jakob L. Kreuze