A PyQT GUI application for converting InfoLease report outputs into Excel files. Handles parsing and summarizing. Learns where files are meant to be store and compiles monthly and yearly summaries.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
InfoLeaseExtract/venv/Lib/site-packages/pandas/tests/io/sas/test_sas.py

26 lines
695 B

from io import StringIO
import pytest
from pandas import read_sas
import pandas._testing as tm
class TestSas:
def test_sas_buffer_format(self):
# see gh-14947
b = StringIO("")
msg = (
"If this is a buffer object rather than a string "
"name, you must specify a format string"
)
with pytest.raises(ValueError, match=msg):
read_sas(b)
def test_sas_read_no_format_or_extension(self):
# see gh-24548
msg = "unable to infer format of SAS file"
with tm.ensure_clean("test_file_no_extension") as path:
with pytest.raises(ValueError, match=msg):
read_sas(path)