Commit 2e3fd3d
🧪 [testing improvement] Add error test for parse_command_arguments (v2)
This version includes proper formatting to satisfy the `black` linter, which caused a CI failure in the previous submission.
🎯 **What:** The testing gap addressed was the lack of validation for the JSON decoding error path.
📊 **Coverage:** The new tests cover:
- Passing `None` (returns empty dict)
- Passing valid JSON (returns parsed dict)
- Passing invalid JSON (raises `argparse.ArgumentTypeError`)
✨ **Result:** Improved reliability and code coverage for CLI argument parsing, now with lint-passing code.
Co-authored-by: rnovatorov <20299819+rnovatorov@users.noreply.github.com>1 parent 5812b6b commit 2e3fd3d
1 file changed
Lines changed: 10 additions & 2 deletions
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
| 7 | + | |
5 | 8 | | |
6 | 9 | | |
7 | 10 | | |
| 11 | + | |
8 | 12 | | |
9 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
10 | 18 | | |
11 | 19 | | |
12 | 20 | | |
13 | | - | |
| 21 | + | |
14 | 22 | | |
0 commit comments