Skip to content

Conversation

@MarcosViniicius
Copy link

Aqui está a descrição organizada:


Description

This pull request introduces code refactoring and adds a new unit test to improve test coverage for SSL verification handling in HTTP downloads.

Testing improvements

  • Added a new test test_download_with_ssl_verification_disabled in tests/test_http_client.py to verify that downloading with SSL verification disabled works as expected.
  • Improved test coverage from 92% to 100%

Code cleanup

  • Refactored the number_to_string function in m3u8/model.py for improved readability by reducing code complexity.

Screenshots

Before refactoring:

image

After refactoring:

image

Test coverage - Before (92%):

image

Test coverage - After (100%):

image

All tests passing ✓


- Refactor number_to_string function to reduce code complexity
- Add new test case: test_download_with_ssl_verification_disabled
  This test verifies download behavior when SSL verification is disabled
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