BioImager  4.9.0
A .NET microscopy imaging application based on Bio library. Supports various microscopes by using imported libraries & GUI automation. Supports XInput game controllers to move stage, take images, run ImageJ macros on images or Bio C# scripts.
Loading...
Searching...
No Matches
microscope.testsuite.test_devices.TestCoherentSapphireLaser Class Reference
Inheritance diagram for microscope.testsuite.test_devices.TestCoherentSapphireLaser:
microscope.testsuite.test_devices.LightSourceTests microscope.testsuite.test_devices.SerialDeviceTests microscope.testsuite.test_devices.DeviceTests

Public Member Functions

 setUp (self)
 
- Public Member Functions inherited from microscope.testsuite.test_devices.LightSourceTests
 assertEqualMW (self, first, second, msg=None)
 
 test_get_is_on (self)
 
 test_off_after_constructor (self)
 
 test_turning_on_and_off (self)
 
 test_shutdown (self)
 
 test_power_when_off (self)
 
 test_setting_power (self)
 
 test_setting_power_outside_limit (self)
 
 test_status (self)
 
- Public Member Functions inherited from microscope.testsuite.test_devices.DeviceTests
 test_on_and_off (self)
 
 test_enable_and_disable (self)
 
 test_enable_enabled (self)
 
 test_disable_disabled (self)
 
- Public Member Functions inherited from microscope.testsuite.test_devices.SerialDeviceTests
 test_connection_defaults (self)
 

Public Attributes

 device = SapphireLaser("/dev/null")
 
 fake = CoherentSapphireLaserMock
 

Detailed Description

Definition at line 353 of file test_devices.py.

Member Function Documentation

◆ setUp()

microscope.testsuite.test_devices.TestCoherentSapphireLaser.setUp ( self)

Definition at line 356 of file test_devices.py.

356 def setUp(self):
357 from microscope.lights.sapphire import SapphireLaser
358 from microscope.testsuite.mock_devices import CoherentSapphireLaserMock
359
360 with unittest.mock.patch(
361 "microscope.lights.sapphire.serial.Serial",
362 new=CoherentSapphireLaserMock,
363 ):
364 self.device = SapphireLaser("/dev/null")
365 self.device.initialize()
366
367 self.fake = CoherentSapphireLaserMock
368
369

Member Data Documentation

◆ device

microscope.testsuite.test_devices.TestCoherentSapphireLaser.device = SapphireLaser("/dev/null")

Definition at line 364 of file test_devices.py.

◆ fake

microscope.testsuite.test_devices.TestCoherentSapphireLaser.fake = CoherentSapphireLaserMock

Definition at line 367 of file test_devices.py.


The documentation for this class was generated from the following file: