1
0
mirror of https://github.com/gsi-upm/senpy synced 2025-08-23 10:02:21 +00:00

Closer to py3

This commit is contained in:
J. Fernando Sánchez
2015-12-17 19:47:11 +01:00
parent ecc2a8312a
commit a79df7a3da
5 changed files with 36 additions and 171 deletions

View File

@@ -1,3 +1,4 @@
from __future__ import print_function
import os
import logging
@@ -31,7 +32,7 @@ class ExtensionsTest(TestCase):
""" Discovery of plugins in given folders. """
# noinspection PyProtectedMember
assert self.dir in self.senpy._search_folders
print self.senpy.plugins
print(self.senpy.plugins)
assert "Dummy" in self.senpy.plugins
def test_enabling(self):

View File

@@ -59,7 +59,7 @@ class ModelsTest(TestCase):
assert("entries" in js)
assert("analysis" in js)
resp = r6.flask()
received = json.loads(resp.data)
received = json.loads(resp.data.decode())
logging.debug("Response: %s", js)
assert(received["entries"])
assert(received["entries"][0]["text"] == "Just testing")