-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- `_calc_portfolio_return` method in `StateChangeComponents` is refactored to improve code readability and maintainability. - A test case for calculating the portfolio return is added to `test_state_change.py`. The calculation is tested based on given inputs using the `Components` mock object.
- Loading branch information
1 parent
745773d
commit ab6ed47
Showing
2 changed files
with
34 additions
and
8 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
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