Commit b71ff94
Koman Rudden
Refactor test_flask_framework.py: reduce duplication and improve code quality
- Extract BaseFlaskFrameworkTest base class with common setUp/tearDown logic
to eliminate ~100 lines of duplicated code across 4 test classes
- Replace try/except blocks with idiomatic shutil.rmtree(ignore_errors=True)
- Prefix unused mock parameters with _ to signal intentional non-use
and silence linter warnings (18 parameters updated)
- Fix framework tracking in test_session_directory_permissions by
renaming to _framework (mocks prevent real directory creation)1 parent 3eb1cc9 commit b71ff94
2 files changed
Lines changed: 69 additions & 150 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| |||
0 commit comments