(descriptor_func)
| 639 | |
| 640 | |
| 641 | def assert_matrix_descriptor_exceptions(descriptor_func): |
| 642 | system = get_simple_finite() |
| 643 | |
| 644 | # Unknown permutation option |
| 645 | with pytest.raises(ValueError): |
| 646 | descriptor_func(n_atoms_max=5, permutation="unknown")() |
| 647 | # Negative n_atom_max |
| 648 | with pytest.raises(ValueError): |
| 649 | descriptor_func(n_atoms_max=-1)() |
| 650 | # System has more atoms than the specified maximum |
| 651 | with pytest.raises(ValueError): |
| 652 | cm = descriptor_func(n_atoms_max=2)() |
| 653 | cm.create([system]) |
| 654 | |
| 655 | |
| 656 | def assert_matrix_descriptor_sorted(descriptor_func): |
no test coverage detected