Test app object initialises
This commit is contained in:
parent
ef0f74838a
commit
bd7833c20f
1 changed files with 14 additions and 0 deletions
14
tests/test_app.py
Normal file
14
tests/test_app.py
Normal file
|
|
@ -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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue