print serializers tested during tests; enforce pure Python for ubjson

This commit is contained in:
Tobias Oberstein 2016-04-18 18:50:21 +02:00
parent 12ffe8f08f
commit 53d4298d99
2 changed files with 7 additions and 2 deletions

View File

@ -148,9 +148,12 @@ class TestSerializer(unittest.TestCase):
self.assertTrue('unicode' in msg_out.kwargs)
def test_roundtrip(self):
for msg in generate_test_messages():
for ser in self.serializers:
msgs = generate_test_messages()
print("\n")
for ser in self.serializers:
print("Testing WAMP serializer <{}>".format(ser.SERIALIZER_ID))
for msg in msgs:
# serialize message
payload, binary = ser.serialize(msg)
@ -159,6 +162,7 @@ class TestSerializer(unittest.TestCase):
# must be equal: message roundtrips via the serializer
self.assertEqual([msg], msg2)
print("")
def test_caching(self):
for msg in generate_test_messages():

View File

@ -97,6 +97,7 @@ extras_require_compress = [
]
# non-JSON WAMP serialization support (namely MsgPack, CBOR and UBJSON)
os.environ['PYUBJSON_NO_EXTENSION'] = '1' # enforce use of pure Python py-ubjson (no Cython)
extras_require_serialization = [
"msgpack-python>=0.4.6", # Apache 2.0 license
"cbor>=0.1.24", # Apache 2.0 license