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/api/test_post_retrieving.py | |
| parent | fd30675124e2ba0fb07fa15af1bec7432cb9f485 (diff) | |
server: make linters happier
Diffstat (limited to 'server/szurubooru/tests/api/test_post_retrieving.py')
| -rw-r--r-- | server/szurubooru/tests/api/test_post_retrieving.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/server/szurubooru/tests/api/test_post_retrieving.py b/server/szurubooru/tests/api/test_post_retrieving.py index a33d60a..a02c7bc 100644 --- a/server/szurubooru/tests/api/test_post_retrieving.py +++ b/server/szurubooru/tests/api/test_post_retrieving.py @@ -44,9 +44,8 @@ def test_using_special_tokens(user_factory, post_factory, context_factory): db.session.add_all([post1, post2, auth_user]) db.session.flush() with patch('szurubooru.func.posts.serialize_post'): - posts.serialize_post.side_effect = \ - lambda post, *_args, **_kwargs: \ - 'serialized post %d' % post.post_id + posts.serialize_post.side_effect = lambda post, *_args, **_kwargs: \ + 'serialized post %d' % post.post_id result = api.post_api.get_posts( context_factory( params={'query': 'special:fav', 'page': 1}, |