Skip to content

Commit

Permalink
minor test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mpecchi committed Mar 29, 2024
1 parent f107dda commit 014c018
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 6 deletions.
Binary file modified tests/data_minimal_case/compounds_properties.xlsx
Binary file not shown.
36 changes: 30 additions & 6 deletions tests/test_minimal_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,11 @@ def test_files_param_reports(gcms, checked_files_param_reports, parameter):
to_check = gcms.create_files_param_report(param=parameter)
checked_report = checked_files_param_reports[parameter]
assert_frame_equal(
to_check, checked_report, check_exact=False, atol=1e-5, rtol=1e-5
to_check.sort_index(),
checked_report.sort_index(),
check_exact=False,
atol=1e-5,
rtol=1e-5,
)


Expand All @@ -179,7 +183,11 @@ def test_files_param_aggrreps(gcms, checked_files_param_aggrreps, parameter):
to_check = gcms.create_files_param_aggrrep(param=parameter)
checked_report = checked_files_param_aggrreps[parameter]
assert_frame_equal(
to_check, checked_report, check_exact=False, atol=1e-5, rtol=1e-5
to_check.sort_index(),
checked_report.sort_index(),
check_exact=False,
atol=1e-5,
rtol=1e-5,
)


Expand Down Expand Up @@ -207,10 +215,18 @@ def test_samples_param_reports(
checked_report = checked_samples_param_reports[parameter]
checked_report_std = checked_samples_param_reports_std[parameter]
assert_frame_equal(
to_check, checked_report, check_exact=False, atol=1e-5, rtol=1e-5
to_check.sort_index(),
checked_report.sort_index(),
check_exact=False,
atol=1e-5,
rtol=1e-5,
)
assert_frame_equal(
to_check_std, checked_report_std, check_exact=False, atol=1e-5, rtol=1e-5
to_check_std.sort_index(),
checked_report_std.sort_index(),
check_exact=False,
atol=1e-5,
rtol=1e-5,
)


Expand Down Expand Up @@ -238,10 +254,18 @@ def test_samples_param_aggrreps(
checked_report = checked_samples_param_aggrreps[parameter]
checked_report_std = checked_samples_param_aggrreps_std[parameter]
assert_frame_equal(
to_check, checked_report, check_exact=False, atol=1e-5, rtol=1e-5
to_check.sort_index(),
checked_report.sort_index(),
check_exact=False,
atol=1e-5,
rtol=1e-5,
)
assert_frame_equal(
to_check_std, checked_report_std, check_exact=False, atol=1e-5, rtol=1e-5
to_check_std.sort_index(),
checked_report_std.sort_index(),
check_exact=False,
atol=1e-5,
rtol=1e-5,
)


Expand Down

0 comments on commit 014c018

Please sign in to comment.