Commit 8f5ce3e
refactor: Remove unnecessary make_edit helper, consolidate imports
Cleaned up test suite by removing unnecessary indirection:
**1. Removed make_edit helper from conftest.py**
- Was just a thin wrapper around TransactionEdit()
- Tests now use TransactionEdit directly (clearer)
- Eliminated unnecessary factory function layer
**2. Consolidated imports in test_data_manager.py**
- Moved TransactionEdit and datetime imports to top of file
- Removed redundant imports from within test method bodies
- Cleaner, more standard Python test file structure
**3. Fixed indentation issues**
- Corrected indentation after automated replacements
- All test methods properly indented
**Benefits**:
- Less indirection = easier to understand
- Standard import pattern (all at top)
- Cleaner test code for humans to read
- No change in functionality
All 465 tests passing, pyright clean.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent fce417b commit 8f5ce3e
3 files changed
+18
-68
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
58 | 63 | | |
59 | 64 | | |
60 | 65 | | |
61 | 66 | | |
62 | 67 | | |
63 | | - | |
| 68 | + | |
64 | 69 | | |
65 | 70 | | |
66 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | 22 | | |
59 | 23 | | |
60 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
| 10 | + | |
8 | 11 | | |
9 | 12 | | |
10 | 13 | | |
| |||
147 | 150 | | |
148 | 151 | | |
149 | 152 | | |
150 | | - | |
151 | | - | |
152 | | - | |
| 153 | + | |
153 | 154 | | |
154 | 155 | | |
155 | 156 | | |
| |||
164 | 165 | | |
165 | 166 | | |
166 | 167 | | |
167 | | - | |
168 | | - | |
169 | 168 | | |
170 | | - | |
171 | | - | |
172 | | - | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
173 | 172 | | |
174 | 173 | | |
175 | 174 | | |
| |||
188 | 187 | | |
189 | 188 | | |
190 | 189 | | |
191 | | - | |
192 | | - | |
193 | | - | |
| 190 | + | |
194 | 191 | | |
195 | 192 | | |
196 | 193 | | |
| |||
201 | 198 | | |
202 | 199 | | |
203 | 200 | | |
204 | | - | |
205 | | - | |
206 | | - | |
| 201 | + | |
207 | 202 | | |
208 | 203 | | |
209 | 204 | | |
| |||
214 | 209 | | |
215 | 210 | | |
216 | 211 | | |
217 | | - | |
218 | | - | |
219 | | - | |
| 212 | + | |
220 | 213 | | |
221 | 214 | | |
222 | 215 | | |
| |||
508 | 501 | | |
509 | 502 | | |
510 | 503 | | |
511 | | - | |
512 | | - | |
513 | | - | |
514 | 504 | | |
515 | 505 | | |
516 | 506 | | |
| |||
557 | 547 | | |
558 | 548 | | |
559 | 549 | | |
560 | | - | |
561 | | - | |
562 | | - | |
563 | 550 | | |
564 | 551 | | |
565 | 552 | | |
| |||
582 | 569 | | |
583 | 570 | | |
584 | 571 | | |
585 | | - | |
586 | | - | |
587 | | - | |
588 | 572 | | |
589 | 573 | | |
590 | 574 | | |
| |||
609 | 593 | | |
610 | 594 | | |
611 | 595 | | |
612 | | - | |
613 | | - | |
614 | | - | |
615 | 596 | | |
616 | 597 | | |
617 | 598 | | |
| |||
0 commit comments