コード例 #1
0
ファイル: test_sql.py プロジェクト: xcelsiorbosi/pyexcel
 def test_sql(self):
     sheet = pe.load_from_sql(Session(), Pyexcel)
     content = dedent("""
     pyexcel:
     +------------+----+-------+--------+
     | birth      | id | name  | weight |
     +------------+----+-------+--------+
     | 2014-11-11 | 0  | Adam  | 11.25  |
     +------------+----+-------+--------+
     | 2014-11-12 | 1  | Smith | 12.25  |
     +------------+----+-------+--------+""").strip('\n')
     self.assertEqual(str(sheet), content)
コード例 #2
0
    def test_sql(self):
        sheet = pe.load_from_sql(Session(), Pyexcel)
        content = dedent("""
Sheet Name: pyexcel
+------------+----+-------+--------+
| birth      | id | name  | weight |
+------------+----+-------+--------+
| 2014-11-11 | 0  | Adam  | 11.250 |
+------------+----+-------+--------+
| 2014-11-12 | 1  | Smith | 12.250 |
+------------+----+-------+--------+""").strip('\n')
        assert str(sheet) == content
コード例 #3
0
ファイル: test_sql.py プロジェクト: CHEN-JIANGHANG/pyexcel
    def test_sql(self):
        sheet = pe.load_from_sql(Session(), Pyexcel)
        content = dedent("""
Sheet Name: pyexcel
+------------+----+-------+--------+
| birth      | id | name  | weight |
+------------+----+-------+--------+
| 2014-11-11 | 0  | Adam  | 11.250 |
+------------+----+-------+--------+
| 2014-11-12 | 1  | Smith | 12.250 |
+------------+----+-------+--------+""").strip('\n')
        assert str(sheet) == content
コード例 #4
0
ファイル: test_sql.py プロジェクト: dardevelin/pyexcel
 def test_sql(self):
     sheet = pe.load_from_sql(Session(), Pyexcel)
     content = dedent("""
     pyexcel:
     +------------+----+-------+--------+
     | birth      | id | name  | weight |
     +------------+----+-------+--------+
     | 2014-11-11 | 0  | Adam  | 11.25  |
     +------------+----+-------+--------+
     | 2014-11-12 | 1  | Smith | 12.25  |
     +------------+----+-------+--------+""").strip('\n')
     self.assertEqual(str(sheet), content)
コード例 #5
0
ファイル: test_sql.py プロジェクト: xcelsiorbosi/pyexcel
 def test_empty_table(self):
     sheet = pe.load_from_sql(Session(), Pyexcel)
     assert sheet is not None
コード例 #6
0
ファイル: test_sql.py プロジェクト: CHEN-JIANGHANG/pyexcel
 def test_empty_table(self):
     sheet = pe.load_from_sql(Session(), Pyexcel)
     assert sheet is not None