Skip to content

Commit

Permalink
fix renaming bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
mccalluc committed Jan 14, 2025
1 parent 0893d72 commit 630d5a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dp_wizard/app/analysis_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
read_csv_ids_names,
get_csv_row_count,
)
from dp_wizard.app.components.outputs import output_code_sample, demo_tooltip, hide_if
from dp_wizard.app.components.outputs import output_code_sample, demo_tooltip
from dp_wizard.utils.code_generators import make_privacy_loss_block


Expand Down
6 changes: 3 additions & 3 deletions tests/utils/test_csv_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@
from dp_wizard.utils.csv_helper import (
read_csv_ids_labels,
read_csv_ids_names,
csv_names_mismatch,
get_csv_names_mismatch,
)


def test_csv_names_mismatch():
def test_get_csv_names_mismatch():
with tempfile.TemporaryDirectory() as tmp:
a_path = Path(tmp) / "a.csv"
a_path.write_text("a,b,c")
b_path = Path(tmp) / "b.csv"
b_path.write_text("b,c,d")
just_a, just_b = csv_names_mismatch(a_path, b_path)
just_a, just_b = get_csv_names_mismatch(a_path, b_path)
assert just_a == {"a"}
assert just_b == {"d"}

Expand Down

0 comments on commit 630d5a6

Please sign in to comment.