remove ods in tests

This commit is contained in:
chfw 2014-11-20 00:12:50 +00:00
parent e197f23986
commit 20fe7060e7
9 changed files with 8 additions and 19 deletions

View File

@ -12,13 +12,7 @@ python:
install:
- python setup.py install
- pip install git+https://github.com/chfw/pyexcel.git
- if [[ $TRAVIS_PYTHON_VERSION == "2.6" ]]; then pip install -r tests/requirements.txt; fi
- if [[ $TRAVIS_PYTHON_VERSION == "2.7" ]]; then pip install -r tests/requirements.txt; fi
- if [[ $TRAVIS_PYTHON_VERSION == "3.3" ]]; then pip install -r tests/requirements3.txt --use-mirrors; fi
- if [[ $TRAVIS_PYTHON_VERSION == "3.4" ]]; then pip install -r tests/requirements3.txt --use-mirrors; fi
- if [[ $TRAVIS_PYTHON_VERSION == "pypy" ]]; then pip install git+https://github.com/eea/odfpy.git; fi
- if [[ $TRAVIS_PYTHON_VERSION == "pypy" ]]; then pip install -r tests/requirements.txt; fi
- pip install -r tests/requirements.txt
- pip install -r tests/requirements.txt
script:
make test
after_success:

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,4 +1,3 @@
pyexcel-ods
nose
rednose
nose-cov

View File

@ -1,3 +1,4 @@
lxml
pyexcel-ods3
nose
rednose

View File

@ -2,16 +2,11 @@ from base import PyexcelMultipleSheetBase
import pyexcel
import os
from pyexcel.ext import xl
import sys
if sys.version_info[0] < 3:
from pyexcel.ext import ods
else:
from pyexcel.ext import ods3
class TestOdsNxlsMultipleSheets(PyexcelMultipleSheetBase):
class TestXlsmNxlsMultipleSheets(PyexcelMultipleSheetBase):
def setUp(self):
self.testfile = "multiple1.ods"
self.testfile = "multiple1.xlsm"
self.testfile2 = "multiple1.xls"
self.content = {
"Sheet1": [[1, 1, 1, 1], [2, 2, 2, 2], [3, 3, 3, 3]],
@ -24,10 +19,10 @@ class TestOdsNxlsMultipleSheets(PyexcelMultipleSheetBase):
self._clean_up()
class TestXlsNOdsMultipleSheets(PyexcelMultipleSheetBase):
class TestXlsNXlsxMultipleSheets(PyexcelMultipleSheetBase):
def setUp(self):
self.testfile = "multiple1.xls"
self.testfile2 = "multiple1.ods"
self.testfile2 = "multiple1.xlsx"
self.content = {
"Sheet1": [[1, 1, 1, 1], [2, 2, 2, 2], [3, 3, 3, 3]],
"Sheet2": [[4, 4, 4, 4], [5, 5, 5, 5], [6, 6, 6, 6]],
@ -54,7 +49,7 @@ class TestAddBooks:
w.close()
def setUp(self):
self.testfile = "multiple1.ods"
self.testfile = "multiple1.xlsm"
self.testfile2 = "multiple1.xls"
self.testfile3 = "multiple2.xlsx"
self.content = {
@ -221,7 +216,7 @@ class TestAddBooks:
class TestMultiSheetReader:
def setUp(self):
self.testfile = "file_with_an_empty_sheet.ods"
self.testfile = "file_with_an_empty_sheet.xls"
def test_reader_with_correct_sheets(self):
r = pyexcel.BookReader(os.path.join("tests", "fixtures", self.testfile))

Binary file not shown.

Binary file not shown.