Skip to content

Commit

Permalink
line ending changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jackbdoughty committed Dec 9, 2024
1 parent 152a5dd commit bafb31b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/callbacks/fitting/test_fit_logging_callback.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# pyright: reportMissingParameterType=false
import os
from pathlib import Path
from unittest.mock import MagicMock, mock_open, patch

Expand Down Expand Up @@ -35,7 +36,7 @@ def test_after_fitting_callback_writes_to_file_successfully_no_y_uncertainity(

# Check that it starts writing to the file in the expected way

assert f" Model({Linear.__name__} [{Linear.equation}])\r\n" in rows
assert f" Model({Linear.__name__} [{Linear.equation}])" + os.linesep in rows
assert "x,y,modelled y\r\n" in rows


Expand Down Expand Up @@ -65,7 +66,7 @@ def test_after_fitting_callback_writes_to_file_successfully_with_y_uncertainity(

# Check that it starts writing to the file in the expected way

assert f" Model({Linear.__name__} [{Linear.equation}])\r\n" in rows
assert f" Model({Linear.__name__} [{Linear.equation}])" + os.linesep in rows
assert "x,y,y uncertainty,modelled y\r\n" in rows


Expand Down

0 comments on commit bafb31b

Please sign in to comment.