diff --git a/tests/test_plugins.py b/tests/test_plugins.py index 82b3b9f6..ebf9c449 100644 --- a/tests/test_plugins.py +++ b/tests/test_plugins.py @@ -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")