Commit 2ad7d98
committed
Fix test mock for commits() to return iterator
The test_username_lookup_case_insensitive test was failing because it mocked
repo_data.commits() to return a list, but the main function expects an iterator
that can be used with next(). Also added explicit owning_team=None to ensure
the test takes the original commit author code path for case-insensitive lookup.
Fixes TypeError: list object is not an iterator
Signed-off-by: Zack Koppert <zkoppert@github.com>1 parent 711b920 commit 2ad7d98
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| 156 | + | |
156 | 157 | | |
157 | 158 | | |
158 | 159 | | |
| |||
166 | 167 | | |
167 | 168 | | |
168 | 169 | | |
169 | | - | |
| 170 | + | |
170 | 171 | | |
171 | 172 | | |
172 | 173 | | |
| |||
0 commit comments