CHAP.test.common.processor_t
¶
File : common/processor_t.py Description: Unit tests for common/processor.py code
Module Contents¶
Classes¶
Unit test for CHAP.common.AsyncProcessor class |
|
Unit test for CHAP.common.IntegrationProcessor class |
|
Unit test for CHAP.common.MapProcessor class |
|
Unit tets for CHAP.common.IntegrateMapProcessor class |
|
Unit test for CHAP.common.NexusToNumpyProcessor class |
|
Unit test for CHAP.common.NexusToXarrayProcessor class |
|
Unit test for CHAP.common.XarrayToNexusProcessor class |
|
Unit test for CHAP.common.XarrayToNumpyProcessor class |
Data¶
API¶
- CHAP.test.common.processor_t.test_data_dir¶
‘join(…)’
- class CHAP.test.common.processor_t.AsyncProcessorTest(methodName='runTest')¶
Bases:
unittest.TestCase
Unit test for CHAP.common.AsyncProcessor class
Initialization
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- setUp()¶
- testProcessor()¶
Unit test to test processor
- class CHAP.test.common.processor_t.IntegrationProcessorTest(methodName='runTest')¶
Bases:
unittest.TestCase
Unit test for CHAP.common.IntegrationProcessor class
Initialization
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- setUp()¶
- testProcessor()¶
Unit test to test processor
- class CHAP.test.common.processor_t.MapProcessorTest(methodName='runTest')¶
Bases:
unittest.TestCase
Unit test for CHAP.common.MapProcessor class
Initialization
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- setUp()¶
Create a fake spec file and map configuration
- testProcessor()¶
Unit test to test processor
- tearDown()¶
Remove the fake spec file created in the setUp method.
- class CHAP.test.common.processor_t.IntegrateMapProcessorTest(methodName='runTest')¶
Bases:
CHAP.test.common.processor_t.MapProcessorTest
Unit tets for CHAP.common.IntegrateMapProcessor class
Initialization
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- setUp()¶
Create a fake spec file, diffraction data files, a map configuration, and an integration configuration
- testProcessor()¶
- tearDown()¶
Remove all the fake data files created in the setUp method
- class CHAP.test.common.processor_t.NexusToNumpyProcessorTest(methodName='runTest')¶
Bases:
unittest.TestCase
Unit test for CHAP.common.NexusToNumpyProcessor class
Initialization
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- setUp()¶
- testProcessor()¶
Unit test to test processor
- class CHAP.test.common.processor_t.NexusToXarrayProcessorTest(methodName='runTest')¶
Bases:
unittest.TestCase
Unit test for CHAP.common.NexusToXarrayProcessor class
Initialization
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- setUp()¶
- testProcessor()¶
Unit test to test processor
- class CHAP.test.common.processor_t.XarrayToNexusProcessorTest(methodName='runTest')¶
Bases:
unittest.TestCase
Unit test for CHAP.common.XarrayToNexusProcessor class
Initialization
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- setUp()¶
- testProcessor()¶
Unit test to test processor
- class CHAP.test.common.processor_t.XarrayToNumpyProcessorTest(methodName='runTest')¶
Bases:
unittest.TestCase
Unit test for CHAP.common.XarrayToNumpyProcessor class
Initialization
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- setUp()¶
- testProcessor()¶
Unit test to test processor