ewoksmx.tests.models.test_characterisation_model#
Functions
|
Test that an invalid strategy name raises a ValidationError. |
|
Test that valid data_paths and metadata input data passes validation. |
|
Verify that completely invalid crystallographic strings raise errors. |
Test that physical values like detector_distance must be positive. |
|
|
Test the output model for fine-sliced output. |
|
Test the ouput model for not fine-sliced output. |
Test that optional fields default to None and anomalous_data defaults to False. |
|
Test that forced_cell must be a tuple of exactly 6 floats. |
|
Test the force space group validator. |
|
|
Test invalid force space group validator. |
Test constraints like aimed_resolution > 0 and completeness 0-100. |
|
Test the regex pattern for strategy_type (only 'full' or 'fast'). |
|
|
Parameterised test for valid numeric inputs. |
|
Verify that valid MX space groups are accepted and normalized. |