core.test_solver_edge
Edge Case Tests for Hedge Portfolio Optimization Solver
This module contains edge case tests for the solver functions in src/core/solver.py.
Test when Pmin is very close to the spot price.
Test when no round strikes fall between Pmin and spot.
Test when the spot price is a multiple of the strike step.
Test that negative strikes are excluded when Pmin is very low.
Test with no extension below Pmin (backward compatibility).
Test with custom extension value (5 strikes below Pmin).
Test with a very narrow Pmin-Pmax range.
Test when Pmin and Pmax are equal.
Test with a larger buffer.
Fixture to provide sample data for edge case tests.
Test that each solver runs successfully.
Test with a mask to fix some quantities.
Test including only a subset of variations in the objective.
Test without the sum(quantities) >= 0 constraint.
Test the full workflow wrapper.