Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
singlesp committed Feb 12, 2025
1 parent b8f0411 commit f44fe53
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cubids/tests/test_bond.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,8 +509,9 @@ def test_tsv_merge_changes(tmp_path):

# TESTING RENAMES GOT APPLIED
applied = pd.read_table(str(tmp_path / "unmodified_summary.tsv"))

applied_f = pd.read_table(str(tmp_path / "unmodified_files.tsv"))

# Check for inconsistencies between FilePath and KeyParamGroup
odd = []
for row in range(len(applied_f)):
if (
Expand All @@ -519,6 +520,7 @@ def test_tsv_merge_changes(tmp_path):
):
odd.append((applied_f.loc[row, "FilePath"]))

# Track KeyParamGroups for files with inconsistencies
occurrences = {}
for row in range(len(applied_f)):
if applied_f.loc[row, "FilePath"] in odd:
Expand All @@ -529,8 +531,10 @@ def test_tsv_merge_changes(tmp_path):
else:
occurrences[applied_f.loc[row, "FilePath"]] = [applied_f.loc[row, "KeyParamGroup"]]

# Ensure no rows were lost
assert len(orig) == len(applied)

# Check for exact matches in EntitySet
renamed = True
new_keys = applied["EntitySet"].tolist()
for row in range(len(orig)):
Expand Down

0 comments on commit f44fe53

Please sign in to comment.