Fix/exporter path - #67
Conversation
PR Summary
|
PR Summary by QodoCreate missing exporter output directory and rename creation error Description
Diagram
High-Level Assessment
Files changed (3)
|
Code Review by Qodo
1. Exception rename breaks imports
|
| class OutputDirectoryCannotBeCreated(ExporterError): | ||
| """ | ||
| Raised when the specified output directory does not exist. | ||
| Raised when the specified output directory cannot be created. | ||
| """ |
There was a problem hiding this comment.
1. Exception rename breaks imports 🐞 Bug ≡ Correctness
The PR removes/renames the public exception OutputDirectoryNotFoundError to OutputDirectoryCannotBeCreated without a compatibility alias, but existing code still imports the old name (tests currently do), causing ImportError and a failing test suite. This is a breaking API change for any downstream callers that catch/import the old exception name.
Agent Prompt
## Issue description
`OutputDirectoryNotFoundError` was renamed/removed, but internal tests (and potentially external users) still import it, causing `ImportError` and breaking callers.
## Issue Context
Exporter behavior changed to create directories, so tests expecting an exception for a non-existent relative directory should be updated to assert directory creation; a separate test should cover the failure case (e.g., output_dir points to an existing file or a non-writable location).
## Fix Focus Areas
- ytfetcher/exceptions.py[6-16]
- tests/exports/test_exporter.py[1-40]
- ytfetcher/services/exports.py[1-60]
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
No description provided.