Skip to content

Commit

Permalink
added tmp_empty
Browse files Browse the repository at this point in the history
  • Loading branch information
neelasha23 committed May 5, 2023
1 parent eebb46c commit 616393d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tests/test_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def test_boxplot_stats_exception(chinook_db, ip_empty):
)


def test_summary_stats(chinook_db, ip_empty):
def test_summary_stats(chinook_db, ip_empty, tmp_empty):
Path("data.csv").write_text(
"""\
x, y
Expand All @@ -96,7 +96,7 @@ def test_summary_stats(chinook_db, ip_empty):
ip_empty.run_cell("%sql INSTALL 'sqlite_scanner';")
ip_empty.run_cell("%sql commit")
ip_empty.run_cell("%sql LOAD 'sqlite_scanner';")
result = plot._summary_stats(None, "data.csv", column="x")
result = plot._summary_stats(Connection.current, "data.csv", column="x")
expected = {"q1": 1.0, "med": 2.0, "q3": 5.0, "mean": 3.4, "N": 5.0}
assert result == expected

Expand Down

0 comments on commit 616393d

Please sign in to comment.