Support "real" UTF-8 by changing to utf8mb4 (winterrodeln tables) and binary (Mediawi...
[philipp/winterrodeln/wrpylib.git] / tests / test_mwdb.py
index 4e6dc8f859794bc66bb1e2b26a7235a2f9f59c64..3e94135ee48ed5713ad42d0d87de12b0fdb25415 100644 (file)
@@ -10,7 +10,7 @@ import wrpylib.mwdb
 class TestMwDb(unittest.TestCase):
     @classmethod
     def setUpClass(cls):
-        cls.engine = create_engine('mysql://philipp@localhost:3306/philipp_winterrodeln_wiki?charset=utf8&use_unicode=1')
+        cls.engine = create_engine('mysql://philipp@localhost:3306/philipp_winterrodeln_wiki?charset=utf8mb4')
         cls.Session = sessionmaker(bind=cls.engine)
 
     def setUp(self):
@@ -71,7 +71,7 @@ class TestMySqlPython(unittest.TestCase):
     This has been fixed in MySQL_python version 1.2.4."""
     @classmethod
     def setUpClass(cls):
-        cls.db = MySQLdb.connect(db='philipp_winterrodeln_wiki', charset='utf8', use_unicode=True)
+        cls.db = MySQLdb.connect(db='philipp_winterrodeln_wiki', charset='utf8mb4')
 
     def setUp(self):
         self.cursor = self.db.cursor()