Skip to content

Commit

Permalink
Neo is now stricter about using mocks, the mock has to say what it is…
Browse files Browse the repository at this point in the history
… pretending to be
  • Loading branch information
apdavison committed Feb 20, 2024
1 parent c12a057 commit 83416b4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/unittests/test_recording.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from unittest.mock import Mock
import pytest

import neo
from pyNN import recording, errors
from pyNN.recording import Variable

Expand Down Expand Up @@ -60,6 +61,7 @@ class MockRecorder(recording.Recorder):
def _get_current_segment(self, filter_ids=None, variables='all', clear=False):
segment = Mock()
segment.analogsignals = [Mock(), Mock()]
segment.proxy_for = neo.Segment
return segment

def _localize_variables(self, variables, locations):
Expand Down

0 comments on commit 83416b4

Please sign in to comment.