From 29e1569e2ddceae758bd124469eae73517086b33 Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Tue, 16 Jul 2019 11:15:04 +0100 Subject: [PATCH] Fixed attaching devices in plugin tests --- tests/test_plugins.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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")