From 57b25f602466ccae94f6323a057848b69d5b844f Mon Sep 17 00:00:00 2001 From: chaoming Date: Tue, 24 Oct 2023 20:32:41 +0800 Subject: [PATCH] fix tests --- brainpy/_src/tests/test_mixin.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/brainpy/_src/tests/test_mixin.py b/brainpy/_src/tests/test_mixin.py index be8eaade6..5fbab7b9f 100644 --- a/brainpy/_src/tests/test_mixin.py +++ b/brainpy/_src/tests/test_mixin.py @@ -42,9 +42,12 @@ class TestDelayRegister(unittest.TestCase): def test2(self): bp.share.save(i=0) lif = bp.dyn.Lif(10) - lif.register_local_delay('a', 10.) - data = lif.get_local_delay('a') + lif.register_local_delay('spike', 'a', 10.) + data = lif.get_local_delay('spike', 'a') self.assertTrue(bm.allclose(data, bm.zeros(10))) + with self.assertRaises(AttributeError): + lif.register_local_delay('a', 'a', 10.) +