-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CRAYSAT-1896: Fix validation of the
InputConfiguration
The `InputConfigurationLayer` instances stored in the `layers` attribute of the `InputConfiguration` class were not being validated when the `validate` method of the `InputConfiguration` was called because this class did not have any validation methods. Add a validation method that validates the layers, and make the `InputConfigurationLayer` class inherit from `Validatable`, so that it has a `validate` method itself. This has not been added for `AdditionalInventoryLayer` yet because there are currently no validation methods on that class. Note that an `index` is added to the constructor of the `InputConfigurationLayer` class to allow for the `__str__` to unambiguously refer to the layer within the CFS configuration. Test Description: Unit tests have been added to test the `validate` method on the `InputConfiguration` class.
- Loading branch information
1 parent
b4242b4
commit cd568f3
Showing
2 changed files
with
159 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.