From bd7833c20f4d78f969f3015e36936409d4577c4b Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Thu, 7 Jan 2021 10:23:27 +0000 Subject: [PATCH] Test app object initialises --- tests/test_app.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/test_app.py diff --git a/tests/test_app.py b/tests/test_app.py new file mode 100644 index 00000000..459b57d4 --- /dev/null +++ b/tests/test_app.py @@ -0,0 +1,14 @@ +from openflexure_microscope.api.app import app, labthing, api_microscope +from openflexure_microscope.microscope import Microscope +from openflexure_microscope.camera.base import BaseCamera +from openflexure_microscope.stage.base import BaseStage + + +def test_app_creation(): + assert labthing.app is app + + +def test_microscope_creation(): + assert isinstance(api_microscope, Microscope) + assert isinstance(api_microscope.camera, BaseCamera) + assert isinstance(api_microscope.stage, BaseStage)