File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed
src/fastcs/transport/epics Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -355,10 +355,8 @@ def _create_and_link_command_pv(
355
355
async def wrapped_method (_ : Any ):
356
356
await method ()
357
357
358
- record = builder .aOut (
358
+ record = builder .Action (
359
359
f"{ pv_prefix } :{ pv_name } " ,
360
- initial_value = 0 ,
361
- always_update = True ,
362
360
on_update = wrapped_method ,
363
361
)
364
362
Original file line number Diff line number Diff line change @@ -269,9 +269,7 @@ def test_ioc(mocker: MockerFixture, controller: Controller):
269
269
always_update = True ,
270
270
on_update = mocker .ANY ,
271
271
)
272
- builder .aOut .assert_any_call (
273
- f"{ DEVICE } :Go" , initial_value = 0 , always_update = True , on_update = mocker .ANY
274
- )
272
+ builder .Action .assert_any_call (f"{ DEVICE } :Go" , on_update = mocker .ANY )
275
273
276
274
# Check info tags are added
277
275
add_pvi_info .assert_called_once_with (f"{ DEVICE } :PVI" )
@@ -443,10 +441,8 @@ def test_long_pv_names_discarded(mocker: MockerFixture):
443
441
assert not getattr (long_name_controller , long_command_name ).fastcs_method .enabled
444
442
445
443
short_command_pv_name = "command_short_name" .title ().replace ("_" , "" )
446
- builder .aOut .assert_called_once_with (
444
+ builder .Action .assert_called_once_with (
447
445
f"{ DEVICE } :{ short_command_pv_name } " ,
448
- initial_value = 0 ,
449
- always_update = True ,
450
446
on_update = mocker .ANY ,
451
447
)
452
448
with pytest .raises (AssertionError ):
You can’t perform that action at this time.
0 commit comments