Skip to content

Commit

Permalink
Update Unit Tests in PolarizationEffiency Cor
Browse files Browse the repository at this point in the history
This is a squashed version of mantidproject#38458

Update Unit Tests in PolarizationEffiency Cor
- wrote unit tests to check that wildes method perform well when spinstates is added
- wrote unit tests to check that fredrik method throws exception when tested with wildes-only properties spinstates and flippers
- wrote unit tests to check that fredrikze method can take AddSpinStateToLog property
- refactored unit tests for maintainability

updated hardcoded strings to use private variables

refactored unit tests to reduce redudancies

Simplify Tests based on code review suggestions
- created efficiency output workspace method to cater for duplication in createEfficiencyWorkspace
- moved functions from setAlgorithmProperties to createAlgorithm method

remove duplication in test_point methods

refactor createEfficiencyOutputWorkspace method
  • Loading branch information
yusufjimoh authored and peterfpeterson committed Jan 17, 2025
1 parent 4c71720 commit 02cd7ce
Showing 1 changed file with 264 additions and 389 deletions.
Loading

0 comments on commit 02cd7ce

Please sign in to comment.