BioImager  3.9.1
A .NET microscopy imaging library. Supports various microscopes by using imported libraries & GUI automation. Supported libraries include PriorĀ® & ZeissĀ® & all devices supported by Micromanager 2.0 and python-microscope.
Loading...
Searching...
No Matches
microscope.testsuite.test_device_server.TestConfigLoader Class Reference
Inheritance diagram for microscope.testsuite.test_device_server.TestConfigLoader:

Public Member Functions

def test_py_file_extension (self)
 
def test_cfg_file_extension (self)
 
def test_no_file_extension (self)
 

Detailed Description

Definition at line 213 of file test_device_server.py.

Member Function Documentation

◆ test_cfg_file_extension()

def microscope.testsuite.test_device_server.TestConfigLoader.test_cfg_file_extension (   self)
Reading of config file does not require .py file extension

Definition at line 228 of file test_device_server.py.

228 def test_cfg_file_extension(self):
229 """Reading of config file does not require .py file extension"""
230 # Test for issue #151. Many importlib functions assume that
231 # the file has importlib.machinery.SOURCE_SUFFIXES extension
232 # so we need a bit of extra work to work with none or .cfg.
233 self._test_load_source("foobar.cfg")
234

References microscope.testsuite.test_device_server.TestConfigLoader._test_load_source().

◆ test_no_file_extension()

def microscope.testsuite.test_device_server.TestConfigLoader.test_no_file_extension (   self)
Reading of config file does not require file extension

Definition at line 235 of file test_device_server.py.

235 def test_no_file_extension(self):
236 """Reading of config file does not require file extension"""
237 self._test_load_source("foobar")
238
239

References microscope.testsuite.test_device_server.TestConfigLoader._test_load_source().

◆ test_py_file_extension()

def microscope.testsuite.test_device_server.TestConfigLoader.test_py_file_extension (   self)
Reading of config file module-like works

Definition at line 224 of file test_device_server.py.

224 def test_py_file_extension(self):
225 """Reading of config file module-like works"""
226 self._test_load_source("foobar.py")
227

References microscope.testsuite.test_device_server.TestConfigLoader._test_load_source().


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