Commit d0fbc3f
committed
test(fix[codecommit]) Mock subprocess in _get_importer CodeCommit tests
why: test_get_importer creates real CodeCommitImporter instances which call
_check_aws_cli() running subprocess.run(["aws", "--version"]). Tests fail
in CI environments without the AWS CLI installed.
what:
- Add monkeypatch for subprocess.run when service is codecommit/cc/aws
- Add subprocess import to test file1 parent a1004f7 commit d0fbc3f
1 file changed
+11
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
227 | 228 | | |
228 | 229 | | |
229 | 230 | | |
| 231 | + | |
230 | 232 | | |
231 | 233 | | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
232 | 243 | | |
233 | 244 | | |
234 | 245 | | |
| |||
0 commit comments