From 83416b4ee3bee5af4b3b712e7dbdb963b0c795a3 Mon Sep 17 00:00:00 2001 From: Andrew Davison Date: Tue, 20 Feb 2024 16:14:48 +0100 Subject: [PATCH] Neo is now stricter about using mocks, the mock has to say what it is pretending to be --- test/unittests/test_recording.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/unittests/test_recording.py b/test/unittests/test_recording.py index 906a9645..4393c890 100644 --- a/test/unittests/test_recording.py +++ b/test/unittests/test_recording.py @@ -4,6 +4,7 @@ from unittest.mock import Mock import pytest +import neo from pyNN import recording, errors from pyNN.recording import Variable @@ -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):