Skip to content
Merged
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
5 changes: 3 additions & 2 deletions pandas/tests/io/formats/style/test_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,11 @@ def tpl_table(env):
return env.get_template("html_table.tpl")


def test_html_template_extends_options():
def test_html_template_extends_options(datapath):
# make sure if templates are edited tests are updated as are setup fixtures
# to understand the dependency
with open("pandas/io/formats/templates/html.tpl", encoding="utf-8") as file:
path = datapath("..", "io", "formats", "templates", "html.tpl")
with open(path, encoding="utf-8") as file:
result = file.read()
assert "{% include html_style_tpl %}" in result
assert "{% include html_table_tpl %}" in result
Expand Down
4 changes: 2 additions & 2 deletions pandas/tests/io/test_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,9 +641,9 @@ def close(self):

@td.skip_if_no("fsspec")
@pytest.mark.parametrize("compression", [None, "infer"])
def test_read_csv_chained_url_no_error(compression):
def test_read_csv_chained_url_no_error(datapath, compression):
# GH 60100
tar_file_path = "pandas/tests/io/data/tar/test-csv.tar"
tar_file_path = datapath("io", "data", "tar", "test-csv.tar")
chained_file_url = f"tar://test.csv::file://{tar_file_path}"

result = pd.read_csv(chained_file_url, compression=compression, sep=";")
Expand Down
Loading