Commit 29e1569e authored by Joel Collins's avatar Joel Collins
Browse files

Fixed attaching devices in plugin tests

parent 78859b07
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -31,7 +31,9 @@ class TestPluginMethods(unittest.TestCase):

if __name__ == '__main__':

        with Microscope(PiCameraStreamer(), OpenFlexureStage("/dev/ttyUSB0")) as microscope:
        with Microscope() as microscope:

            microscope.attach(PiCameraStreamer(), OpenFlexureStage())

            microscope.plugin.attach("openflexure_microscope.plugins.testing:Plugin")