Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TST: mark all excel tests as slow #38258

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ci/deps/azure-37-locale_slow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ dependencies:
# pandas dependencies
- beautifulsoup4=4.6.0
- bottleneck=1.2.*
- jinja2
- lxml
- matplotlib=3.0.0
- numpy=1.16.*
- odfpy
- openpyxl=2.6.0
- python-dateutil
- python-blosc
Expand Down
5 changes: 5 additions & 0 deletions ci/deps/azure-37-slow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ dependencies:
- beautifulsoup4
- fsspec>=0.7.4
- html5lib
- jinja2
- lxml
- matplotlib
- numexpr
- numpy
- odfpy
- openpyxl
- patsy
- psycopg2
Expand All @@ -36,3 +38,6 @@ dependencies:
- xlwt
- moto
- flask
- pip
- pip:
- pyxlsb
5 changes: 5 additions & 0 deletions ci/deps/travis-38-slow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@ dependencies:
- beautifulsoup4
- fsspec>=0.7.4
- html5lib
- jinja2
- lxml
- matplotlib
- numexpr
- numpy
- odfpy
- openpyxl
- patsy
- psycopg2
Expand All @@ -35,3 +37,6 @@ dependencies:
- xlwt
- moto
- flask
- pip
- pip:
- pyxlsb
7 changes: 7 additions & 0 deletions pandas/tests/io/excel/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
"""
Package for testing excel-related functionality.

All tests are marked as slow via ``pytestmark = pytest.mark.slow``
at the top of each test module.
"""

import pytest

pytestmark = [
Expand Down
2 changes: 2 additions & 0 deletions pandas/tests/io/excel/test_odf.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
import pandas as pd
import pandas._testing as tm

pytestmark = pytest.mark.slow

pytest.importorskip("odf")


Expand Down
2 changes: 2 additions & 0 deletions pandas/tests/io/excel/test_openpyxl.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

from pandas.io.excel import ExcelWriter, _OpenpyxlWriter

pytestmark = pytest.mark.slow

openpyxl = pytest.importorskip("openpyxl")

pytestmark = pytest.mark.parametrize("ext", [".xlsx"])
Expand Down
4 changes: 2 additions & 2 deletions pandas/tests/io/excel/test_readers.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
from pandas import DataFrame, Index, MultiIndex, Series
import pandas._testing as tm

pytestmark = pytest.mark.slow

read_ext_params = [".xls", ".xlsx", ".xlsm", ".xlsb", ".ods"]
engine_params = [
# Add any engines to test here
Expand Down Expand Up @@ -636,9 +638,7 @@ def test_read_from_s3_url(self, read_ext, s3_resource, s3so):
local_table = pd.read_excel("test1" + read_ext)
tm.assert_frame_equal(url_table, local_table)

@pytest.mark.slow
def test_read_from_file_url(self, read_ext, datapath):

# FILE
localtable = os.path.join(datapath("io", "data", "excel"), "test1" + read_ext)
local_table = pd.read_excel(localtable)
Expand Down
2 changes: 2 additions & 0 deletions pandas/tests/io/excel/test_style.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
from pandas.io.excel import ExcelWriter
from pandas.io.formats.excel import ExcelFormatter

pytestmark = pytest.mark.slow


@pytest.mark.parametrize(
"engine",
Expand Down
2 changes: 2 additions & 0 deletions pandas/tests/io/excel/test_writers.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
register_writer,
)

pytestmark = pytest.mark.slow


@pytest.fixture
def path(ext):
Expand Down
2 changes: 2 additions & 0 deletions pandas/tests/io/excel/test_xlrd.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

from pandas.io.excel import ExcelFile

pytestmark = pytest.mark.slow

xlrd = pytest.importorskip("xlrd")
xlwt = pytest.importorskip("xlwt")

Expand Down
2 changes: 2 additions & 0 deletions pandas/tests/io/excel/test_xlsxwriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

from pandas.io.excel import ExcelWriter

pytestmark = pytest.mark.slow

xlsxwriter = pytest.importorskip("xlsxwriter")

pytestmark = pytest.mark.parametrize("ext", [".xlsx"])
Expand Down
2 changes: 2 additions & 0 deletions pandas/tests/io/excel/test_xlwt.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

from pandas.io.excel import ExcelWriter, _XlwtWriter

pytestmark = pytest.mark.slow

xlwt = pytest.importorskip("xlwt")

pytestmark = pytest.mark.parametrize("ext,", [".xls"])
Expand Down