From 10d89e541b79224d27a769bd03e1fd96a10fa6bf Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Wed, 12 Dec 2018 15:01:10 +0000 Subject: [PATCH] Updated plugin tester --- tests/test_plugins.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tests/test_plugins.py b/tests/test_plugins.py index 47d7815e..f65c37be 100644 --- a/tests/test_plugins.py +++ b/tests/test_plugins.py @@ -10,15 +10,13 @@ logging.basicConfig(stream=sys.stderr, level=logging.DEBUG) if __name__ == '__main__': openflexurerc = config.load_config() - microscope = Microscope(StreamingCamera(config=openflexurerc), OpenFlexureStage("/dev/ttyUSB0")) + print(openflexurerc) - microscope.find_plugins() # Automatically find microscope plugins + microscope = Microscope(StreamingCamera(config=openflexurerc), OpenFlexureStage("/dev/ttyUSB0"), config=openflexurerc) - print(dir(microscope.plugin)) + print(microscope.plugin.plugins) # Check that default tets plugins have loaded - print("RUNNING PLUGIN METHODS:") - microscope.plugin.test1.run() - microscope.plugin.test2.run() + print(microscope.plugin.default.identify()) microscope.close()