Commit 4af446e
committed
fix: resolve unit test configuration issues in conftest.py
- Fix duplicate @pytest.fixture decorators on aws_mocks and repository_type
- Fix incorrect import: template_service -> template_persistence_service
- Update mock_template_service to use TemplatePersistenceService spec
- Tests can now be collected and run without ImportError
Fixes:
- ValueError: @pytest.fixture is being applied more than once
- ImportError: No module named 'src.infrastructure.template.template_service'
- Unit tests should now pass in CI pipeline1 parent 95a6ecc commit 4af446e
2 files changed
Lines changed: 6 additions & 9 deletions
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
150 | | - | |
| 149 | + | |
151 | 150 | | |
152 | 151 | | |
153 | 152 | | |
| |||
286 | 285 | | |
287 | 286 | | |
288 | 287 | | |
289 | | - | |
290 | | - | |
| 288 | + | |
291 | 289 | | |
292 | 290 | | |
293 | 291 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
| |||
257 | 259 | | |
258 | 260 | | |
259 | 261 | | |
260 | | - | |
261 | 262 | | |
262 | 263 | | |
263 | 264 | | |
| |||
387 | 388 | | |
388 | 389 | | |
389 | 390 | | |
390 | | - | |
| 391 | + | |
391 | 392 | | |
392 | 393 | | |
393 | 394 | | |
| |||
464 | 465 | | |
465 | 466 | | |
466 | 467 | | |
467 | | - | |
468 | | - | |
469 | 468 | | |
470 | 469 | | |
471 | 470 | | |
| |||
0 commit comments