summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2017-12-06 18:16:33 -0200
committerdrebs <drebs@leap.se>2017-12-13 13:43:47 -0200
commit9f07826cd98448b38646b2c731f82f99ee37f7c4 (patch)
treee96c16f54c4933dad380cfb63278c3a26a6dd2d3 /tests
parent6f29df7d0a8c68fb5aaf4de38d68b8c3de1a4aaa (diff)
[refactor] make blobs backend get_flags() agnostic of twisted.web requests
Diffstat (limited to 'tests')
-rw-r--r--tests/server/test_incoming_server.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/server/test_incoming_server.py b/tests/server/test_incoming_server.py
index 8c22b13b..42637c87 100644
--- a/tests/server/test_incoming_server.py
+++ b/tests/server/test_incoming_server.py
@@ -18,7 +18,6 @@
Integration tests for incoming API
"""
import pytest
-import json
from io import BytesIO
from uuid import uuid4
from twisted.web.test.test_web import DummyRequest
@@ -86,8 +85,7 @@ class IncomingOnCouchServerTestCase(CouchDBTestCase):
db = self.state.open_database(user_id)
request = DummyRequest([user_id, doc_id])
yield db.read_blob(user_id, doc_id, request, 'MX')
- flags = db.get_flags(user_id, doc_id, request, 'MX')
- flags = json.loads(flags)
+ flags = db.get_flags(user_id, doc_id, 'MX')
expected_preamble = formatter.preamble(content, doc_id)
expected_preamble = decode_preamble(expected_preamble, True)
written_preamble, written_content = request.written[0].split()