Skip to content

Commit

Permalink
minor cleanup of unused test lines
Browse files Browse the repository at this point in the history
  • Loading branch information
danielfromearth committed Jun 17, 2024
1 parent 65126d0 commit 95b9e8d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
9 changes: 0 additions & 9 deletions tests/test_complete_file_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,4 @@ def test_full_run_to_xlsx_output(temp_data_dir):
difference = df1[df1 != df2]
rows_with_differences = [(idx, row) for idx, row in difference.notnull().iterrows() if any(row)]

if len(rows_with_differences) != 0:
print(
f"Test will fail because of differences in <{len(rows_with_differences)}> rows. "
f"Differences identified (Row index ----> row contents):"
)
for idx, row in rows_with_differences:
diff = difference.loc[idx]
print(f" {idx} ----> {diff}")

assert len(rows_with_differences) == 0
10 changes: 2 additions & 8 deletions tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,7 @@ def test_comparison_group_no_error_for_duplicate_dataset(
if "Variables within specified group <Group1>:" in line:
found_expected = True

if found_expected:
assert True
else:
assert False
assert found_expected


def test_comparison_var_no_error_for_duplicate_dataset(
Expand All @@ -160,10 +157,7 @@ def test_comparison_var_no_error_for_duplicate_dataset(
if "Sample values within specified variable <var1>:" in line:
found_expected = True

if found_expected:
assert True
else:
assert False
assert found_expected


def test_get_vars_with_group(ds_3dims_3vars_4coords_1group):
Expand Down

0 comments on commit 95b9e8d

Please sign in to comment.