projektAI/venv/Lib/site-packages/pandas/tests/io/excel/test_odswriter.py

18 lines
406 B
Python
Raw Normal View History

2021-06-06 22:13:05 +02:00
import pytest
import pandas._testing as tm
from pandas.io.excel import ExcelWriter
odf = pytest.importorskip("odf")
pytestmark = pytest.mark.parametrize("ext", [".ods"])
def test_write_append_mode_raises(ext):
msg = "Append mode is not supported with odf!"
with tm.ensure_clean(ext) as f:
with pytest.raises(ValueError, match=msg):
ExcelWriter(f, engine="odf", mode="a")