Skip to content

Commit

Permalink
Force df dtype to be str in all cases
Browse files Browse the repository at this point in the history
  • Loading branch information
ppinchuk committed Sep 21, 2023
1 parent 3cf9881 commit 559f7be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/cli/test_cli_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import pandas as pd
from pathlib import Path
dir_name = Path(__file__).parent.name
dir_name = f"{Path(__file__).parent.name}_test"
pd.DataFrame({"s": [dir_name]}).to_csv("test_out.csv", index=False)
"""

Expand Down Expand Up @@ -59,7 +59,7 @@ def test_script_cli(tmp_path, cli_runner, runnable_script):

test_df = pd.read_csv(tmp_path / "test_out.csv")
pd.testing.assert_frame_equal(
test_df, pd.DataFrame({"s": [tmp_path.name]})
test_df, pd.DataFrame({"s": [f"{tmp_path.name}_test"]})
)


Expand Down

0 comments on commit 559f7be

Please sign in to comment.