Commit 6eaf99d
authored
TST: add branch coverage for fin_flutter_analysis and fix keyword argument bug (#904)
* TST: add branch coverage for fin_flutter_analysis and fix keyword bug
This commit increases test coverage for utilities.py by adding three new
tests that cover previously untested branches in the fin_flutter_analysis
function. The tests cover the see_prints=True branch, see_graphs=True
branch, and both flags enabled simultaneously.
During testing, discovered and fixed a bug where the filename parameter
was incorrectly passed as a positional argument to _flutter_plots, which
requires it as a keyword-only argument. This would cause a TypeError at
runtime when users attempted to save flutter plots to files.
Changes:
- Add test_fin_flutter_analysis_with_prints for print branch coverage
- Add test_fin_flutter_analysis_with_graphs for plotting branch coverage
- Add test_fin_flutter_analysis_complete_output for combined coverage
- Fix filename argument bug in fin_flutter_analysis (line 286)
- Fix test_flutter_plots to use keyword argument for filename
- Increases utilities.py coverage from 68% to 69% (+2 statements)
* DOC: updated CHANGELOG for test coverage and bug fix
* DOC: revert CHANGELOG.md changes per reviewer feedback1 parent 14b9984 commit 6eaf99d
2 files changed
+71
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
286 | | - | |
| 286 | + | |
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
120 | 190 | | |
121 | 191 | | |
122 | 192 | | |
| |||
0 commit comments