Skip to content

Commit

Permalink
Merge pull request #66 from EIT-ALIVE/hotfix_linting
Browse files Browse the repository at this point in the history
linting
  • Loading branch information
wbaccinelli authored Aug 19, 2024
2 parents a3bad7c + a84606e commit e8126af
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/unit_tests/test_preprocessing_callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from eit_dash.utils.data_singleton import LoadedData


@pytest.fixture()
@pytest.fixture
def mock_data_object(file_data: Sequence):
"""Mocked object to save and retrieve the data."""
data_object = LoadedData()
Expand All @@ -25,7 +25,7 @@ def mock_data_object(file_data: Sequence):
return data_object


@pytest.fixture()
@pytest.fixture
def mock_tmp_results():
"""Mocked temporary results object."""
return LoadedData()
Expand Down Expand Up @@ -71,7 +71,10 @@ def test_apply_filter_callback(
# the filtered results are saved in a temporary object before saving them
# through a different call. We need to verify if the presence of the data
# in the mocked temporary object.
assert "global_impedance_(filtered)" in mock_tmp_results.get_stable_period(0).get_data().continuous_data
assert (
"global_impedance_(filtered)"
in mock_tmp_results.get_stable_period(0).get_data().continuous_data
)


def test_open_synch_modal_callback():
Expand Down

0 comments on commit e8126af

Please sign in to comment.