Skip to content

Commit f4a97db

Browse files
committed
Fix test mock to set DAQ system name for device matching
The test mock_daqsys needs name and _name attributes set to match the devicestring in the epochprobemap, so the device name check works correctly. https://claude.ai/code/session_016R2mDR7X4ySBpod8U54i1z
1 parent 2543ac9 commit f4a97db

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/test_element.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,8 @@ def test_buildepochtable_with_matching_epoch(self):
559559
mock_session = MagicMock()
560560

561561
mock_daqsys = MagicMock()
562+
mock_daqsys.name = "dev1"
563+
mock_daqsys._name = "dev1"
562564
mock_daqsys.epochtable.return_value = [
563565
{
564566
"epoch_number": 1,

0 commit comments

Comments
 (0)