|
@@ -2,6 +2,7 @@
|
2
|
2
|
|
3
|
3
|
import unittest
|
4
|
4
|
import sqlite3
|
|
5
|
+import pymysql
|
5
|
6
|
from unittest import TestCase
|
6
|
7
|
from leobject.datasources.ledatasourcesql import LeDataSourceSQL
|
7
|
8
|
from mosql.db import Database
|
|
@@ -10,7 +11,7 @@ from mosql.db import Database
|
10
|
11
|
class _LeDataSourceTestCase(TestCase):
|
11
|
12
|
|
12
|
13
|
def setUp(self):
|
13
|
|
- self.mydatasource = LeDataSourceSQL(sqlite3, *{'db.sqlite3': '127.0.0.1'})
|
|
14
|
+ self.mydatasource = LeDataSourceSQL(pymysql, *{'host':'localhost','user':'lodel','passwd':'bruno'})
|
14
|
15
|
|
15
|
16
|
def tearDown(self):
|
16
|
17
|
del self.mydatasource
|
|
@@ -25,6 +26,7 @@ class _LeDataSourceTestCase(TestCase):
|
25
|
26
|
pass
|
26
|
27
|
|
27
|
28
|
def test_get(self):
|
|
29
|
+
|
28
|
30
|
pass
|
29
|
31
|
|
30
|
32
|
def test_update(self):
|