Skip to content

Commit

Permalink
fix import error that leads to incorrect cov report
Browse files Browse the repository at this point in the history
  • Loading branch information
KedoKudo committed Jan 7, 2025
1 parent 3aa1f55 commit 58514cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/pleiades/sammy/parameters/test_resonance.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import pytest

from src.pleiades.sammy.parameters.resonance import ResonanceEntry, UnsupportedFormatError, VaryFlag
from pleiades.sammy.parameters.resonance import ResonanceEntry, UnsupportedFormatError, VaryFlag


def test_valid_resonance_entry():
Expand Down Expand Up @@ -72,7 +72,7 @@ def test_full_channel_widths():

def test_logger_error_for_x_value():
line = "-3.6616E+06 1.5877E+05 3.6985E+09 0 0 1 1 abc"
with patch("src.pleiades.sammy.parameters.resonance.logger") as mock_logger:
with patch("pleiades.sammy.parameters.resonance.logger") as mock_logger:
ResonanceEntry.from_str(line)
mock_logger.error.assert_called_once_with("Failed to parse X value: could not convert string to float: 'abc'")

Expand Down

0 comments on commit 58514cb

Please sign in to comment.