Skip to content

refactor(config): remove redundant DEV_URL and PROD_URL#34

Merged
gustavovalverde merged 3 commits intomainfrom
remove-redundant-urls
May 28, 2025
Merged

refactor(config): remove redundant DEV_URL and PROD_URL#34
gustavovalverde merged 3 commits intomainfrom
remove-redundant-urls

Conversation

@gustavovalverde
Copy link
Member

  • Remove DEV_URL and PROD_URL fields from AzulSettings class
  • Remove unnecessary field validator for empty URL strings
  • Remove unused imports (field_validator, AzulEndpoints)
  • Update unit tests to remove references to deleted fields
  • Fix test_process_3ds_method to properly set up session data

The DEV_URL and PROD_URL fields were redundant because:

  • AzulAPI client uses AzulEndpoints.get_url() directly from constants
  • No business case for overriding standard Azul URLs via environment
  • ALT_PROD_URL and ALT_PROD_URL_PAYMENT remain for legitimate overrides

BREAKING CHANGE: DEV_URL and PROD_URL environment variables are no longer supported"

…L fields

- Remove DEV_URL and PROD_URL fields from AzulSettings class
- Remove unnecessary field validator for empty URL strings
- Remove unused imports (field_validator, AzulEndpoints)
- Update unit tests to remove references to deleted fields
- Fix test_process_3ds_method to properly set up session data

The DEV_URL and PROD_URL fields were redundant because:
- AzulAPI client uses AzulEndpoints.get_url() directly from constants
- No business case for overriding standard Azul URLs via environment
- ALT_PROD_URL and ALT_PROD_URL_PAYMENT remain for legitimate overrides

BREAKING CHANGE: DEV_URL and PROD_URL environment variables are no longer supported"
- Replace broad exception catching with specific exceptions in config.py
- Add get_api_url() method to AzulSettings to satisfy min public methods requirement
- Fix redefined outer name warnings in test files by renaming parameters
- Resolve protected access warnings by improving mock configuration
- Add missing AzulEndpoints import and fix method references
- Create fixture aliases in test_secure_service_unit.py to avoid naming conflicts
- Update mock setup in conftest.py to properly handle private method mocking

Fixes pylint warnings: W0718, R0903, W0621, W0212, W0613
All unit tests passing (35/35) with no remaining linter errors."
@gustavovalverde gustavovalverde merged commit 4b8a86c into main May 28, 2025
2 of 3 checks passed
@gustavovalverde gustavovalverde deleted the remove-redundant-urls branch May 28, 2025 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant