Commit 81d9f18
committed
fix(test): mock github-app-private-key in _build_app_with_app_config
The _get_app_installation_token function reads the private key from
secrets.get('github-app-private-key'), but the test helper
_build_app_with_app_config only mocked secrets.get for github_token.
This caused test_repo_endpoint_still_uses_app_token to return 401
instead of 200.
Replace the generic AsyncMock with a side_effect that returns the
private key for 'github-app-private-key' and the PAT for 'github_token'.1 parent f122a53 commit 81d9f18
1 file changed
Lines changed: 10 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
344 | | - | |
| 344 | + | |
345 | 345 | | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
350 | 355 | | |
351 | 356 | | |
352 | 357 | | |
| |||
0 commit comments