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()