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.TestDummyLightSource Class Reference
Inheritance diagram for microscope.testsuite.test_devices.TestDummyLightSource:
microscope.testsuite.test_devices.LightSourceTests microscope.testsuite.test_devices.DeviceTests

Public Member Functions

 setUp (self)
 
 test_get_is_on (self)
 
- Public Member Functions inherited from microscope.testsuite.test_devices.LightSourceTests
 assertEqualMW (self, first, second, msg=None)
 
 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 Attributes

 device = simulators.SimulatedLightSource()
 
 fake = self.device
 

Detailed Description

Definition at line 337 of file test_devices.py.

Member Function Documentation

◆ setUp()

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

Definition at line 338 of file test_devices.py.

338 def setUp(self):
339 self.device = simulators.SimulatedLightSource()
340
341 # TODO: we need to rethink the test so this is not needed.
342 self.fake = self.device
343 self.fake.default_power = self.fake._set_point
344 self.fake.min_power = 0.0
345 self.fake.max_power = 100.0
346

◆ test_get_is_on()

microscope.testsuite.test_devices.TestDummyLightSource.test_get_is_on ( self)

Reimplemented from microscope.testsuite.test_devices.LightSourceTests.

Definition at line 347 of file test_devices.py.

347 def test_get_is_on(self):
348 # TODO: this test assumes the connection property to be the
349 # fake. We need to rethink how the mock lasers work.
350 pass
351
352

Member Data Documentation

◆ device

microscope.testsuite.test_devices.TestDummyLightSource.device = simulators.SimulatedLightSource()

Definition at line 339 of file test_devices.py.

◆ fake

microscope.testsuite.test_devices.TestDummyLightSource.fake = self.device

Definition at line 342 of file test_devices.py.


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