-
Notifications
You must be signed in to change notification settings - Fork 12
Deploy release v0.57.0 #894
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Refactor several test files for enum and constant classes to improve maintainability, consistency, and clarity. The main changes involve shifting from direct imports and usage of module-level constants/enums to storing them as class variables set up in `setUpClass()`, and enhancing the tests to check type consistency and equality for enum members. Key improvements include: - Consistent use of `setUpClass` to initialize class variables for constants and enums. - Enhanced type and equality checks for enum members in test cases. - Refactoring tests to use class variables instead of direct imports or module references. The most important changes are: **Test structure and setup improvements:** - Refactored all test classes in `test_dte_constants.py`, `test_rcv_constants.py`, `test_rtc_constants.py`, and `test_rut_constants.py` to use `setUpClass()` and store constants/enums as class variables, promoting consistency and easier maintenance. **Enum and constant validation enhancements:** - Updated enum tests to include checks for member value types (e.g., ensuring all values are of type `int` or `str`) and to verify that enum members are equal to their values or names where appropriate. - Improved tests for enums with integer values (like `TipoDte` and `RcvTipoDocto`) to confirm that enum members are also instances of `int`, and that casting their values to `int` yields the member itself. - For enums with string values, added checks to ensure that member values match their names. **Test code simplification:** - Replaced repetitive direct constant access in test methods with class variables, simplifying test code and reducing import clutter. **Documentation and clarity:** - Added docstrings and comments to clarify test purposes, such as in `TipoDteCediblesTest` for `TIPO_DTE_CEDIBLES`. These changes collectively make the test suite more robust, readable, and maintainable.
…ests tests: Refactor and improve constants tests
- Implemented `parse_taxpayer_provided_info` to parse taxpayer-provided information from CTE HTML. - Added `TaxpayerProvidedInfo` and `LegalRepresentative` data models. - Created tests to validate parser functionality with sample HTML input. Ref: https://app.shortcut.com/cordada/story/16535/
…provista-por-el-contribuyente-cte cte: Add parser for "Carpeta Tributaria Electrónica"
- Updated `iva_no_retenido` to be optional in `RcDetalleEntry` and its variants. - Adjusted CSV parser to handle cases where `iva_no_retenido` is missing or `None`. - Updated tests to reflect changes in `iva_no_retenido` handling. Ref: https://app.shortcut.com/cordada/story/16600/
…for-RcRegistroDetalleEntry rcv: Make `iva_no_retenido` optional in data models and parsers
- Updated `RcvCompraReclamadoCsvRowSchema.preprocess` workaround for `Fecha Reclamo` to check if variable is already `None` - Implemented test `test_parse_rcv_compra_reclamado_csv_file` to check multiple use cases for parser `RcvCompraReclamadoCsvRowSchema` Ref: https://app.shortcut.com/cordada/story/16601/
…-of-type-nonetype-is-not-iterable rcv: Improve checks for RCV Reclamado parser workaround
Release v0.57.0
|
jtrobles-cdd
approved these changes
Sep 15, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.


Ref: #893