Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

refactor: clean up number_to_string and add SSL test coverage#401

Open
MarcosViniicius wants to merge 1 commit intoglobocom:masterglobocom/m3u8:masterfrom
MarcosViniicius:masterMarcosViniicius/m3u8:masterCopy head branch name to clipboard
Open

refactor: clean up number_to_string and add SSL test coverage#401
MarcosViniicius wants to merge 1 commit intoglobocom:masterglobocom/m3u8:masterfrom
MarcosViniicius:masterMarcosViniicius/m3u8:masterCopy head branch name to clipboard

Conversation

@MarcosViniicius
Copy link
Copy Markdown

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.