Skip to content

Commit

Permalink
introducing allclose assertion to make it pass
Browse files Browse the repository at this point in the history
  • Loading branch information
nmathieufact committed Mar 25, 2024
1 parent d0f3a8c commit a7f6da0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_model_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def test_video_prediction_tracking(expected_results, test_input, video_number):
output_file_path = OUTPUT_FOLDER / f"{video_number}_test_results.txt"
np.savetxt(output_file_path, combined_array, delimiter=" ", fmt="%s")

np.array_equal(expected_results, combined_array)
assert np.allclose(expected_results, combined_array)

# Remove the file if the test is successful
output_file_path.unlink()

0 comments on commit a7f6da0

Please sign in to comment.