diff options
| author | rr- <rr-@sakuya.pl> | 2017-02-03 21:42:15 +0100 |
|---|---|---|
| committer | rr- <rr-@sakuya.pl> | 2017-02-03 22:42:14 +0100 |
| commit | abf1fc2b2d135299fe7e8a700d4e7a18966d7bfe (patch) | |
| tree | cde2ca37ecb35cbcebb405d09f897915cdb394ab /server/szurubooru/tests/func/test_posts.py | |
| parent | fd30675124e2ba0fb07fa15af1bec7432cb9f485 (diff) | |
server: make linters happier
Diffstat (limited to 'server/szurubooru/tests/func/test_posts.py')
| -rw-r--r-- | server/szurubooru/tests/func/test_posts.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/server/szurubooru/tests/func/test_posts.py b/server/szurubooru/tests/func/test_posts.py index a10cc6d..682a1cc 100644 --- a/server/szurubooru/tests/func/test_posts.py +++ b/server/szurubooru/tests/func/test_posts.py @@ -494,9 +494,8 @@ def test_update_post_content_leaving_custom_thumbnail( def test_update_post_tags(tag_factory): post = db.Post() with patch('szurubooru.func.tags.get_or_create_tags_by_names'): - tags.get_or_create_tags_by_names.side_effect \ - = lambda tag_names: \ - ([tag_factory(names=[name]) for name in tag_names], []) + tags.get_or_create_tags_by_names.side_effect = lambda tag_names: \ + ([tag_factory(names=[name]) for name in tag_names], []) posts.update_post_tags(post, ['tag1', 'tag2']) assert len(post.tags) == 2 assert post.tags[0].names[0].name == 'tag1' |