66from pydantic import ValidationError
77
88from fastcs .attributes import Attribute , AttrR , AttrRW
9- from fastcs .backend import Backend
109from fastcs .controller import Controller
1110from fastcs .datatypes import Bool , Enum , Float , Int , String
1211from fastcs .util import (
@@ -145,13 +144,13 @@ async def initialise(self):
145144 self .hinted = AttrR (Int ())
146145
147146 # no assertion thrown
148- Backend (ControllerUnspecifiedAccessMode (), loop )
147+ FastCS (ControllerUnspecifiedAccessMode (), [] , loop )
149148
150149
151150def test_hinted_attributes_verified_on_subcontrollers ():
152151 loop = asyncio .get_event_loop ()
153152
154- class ControllerWithWrongType (SubController ):
153+ class ControllerWithWrongType (Controller ):
155154 hinted_missing : AttrR [int ]
156155
157156 async def connect (self ):
@@ -163,7 +162,7 @@ async def initialise(self):
163162 self .register_sub_controller ("MySubController" , subcontroller )
164163
165164 with pytest .raises (RuntimeError , match = "failed to introspect hinted attribute" ):
166- Backend (TopController (), loop )
165+ FastCS (TopController (), [] , loop )
167166
168167
169168def test_hinted_attribute_types_verified ():
@@ -177,12 +176,12 @@ async def initialise(self):
177176 self .read_attr = AttrRW (Int ())
178177
179178 with pytest .raises (RuntimeError , match = "does not match defined access mode" ):
180- Backend (ControllerAttrWrongAccessMode (), loop )
179+ FastCS (ControllerAttrWrongAccessMode (), [] , loop )
181180
182181 class ControllerUnspecifiedAccessMode (Controller ):
183182 unspecified_access_mode : Attribute
184183
185184 async def initialise (self ):
186185 self .unspecified_access_mode = AttrRW (Int ())
187186
188- Backend (ControllerUnspecifiedAccessMode (), loop )
187+ FastCS (ControllerUnspecifiedAccessMode (), [] , loop )
0 commit comments