Skip to content

test: suppress aiohttp BasicAuth deprecation warning - #161

Open
Divesh-Kshirsagar wants to merge 1 commit into
LeyckerS:mainfrom
Divesh-Kshirsagar:fix/151-aiohttp-deprecation-warning
Open

test: suppress aiohttp BasicAuth deprecation warning#161
Divesh-Kshirsagar wants to merge 1 commit into
LeyckerS:mainfrom
Divesh-Kshirsagar:fix/151-aiohttp-deprecation-warning

Conversation

@Divesh-Kshirsagar

Copy link
Copy Markdown

Description

Adds a targeted pytest warning filter for the aiohttp.BasicAuth deprecation warning in pytest.ini.

aiohttp.BasicAuth is intentionally kept because it is still required for proxy authentication, including HTTPS proxy connections. The warning is suppressed only during pytest runs rather than changing the application code.

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would change existing behavior)
  • Documentation update
  • Refactor / code cleanup
  • Other:

Checklist

  • I have tested my changes locally
  • If this affects shared logic (extraction, download engine), I also
    applied the equivalent change to moon_cli.py
  • I have kept the single-file architecture (no package split)
  • I have not added new dependencies without justification in the PR
    description

Screenshots / logs (if applicable)

Tests:

  • uv run pytest tests/ — 50 passed
  • act -j no-chrome — passed
  • act -j ruff — passed

Closes #151

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.

silence the aiohttp BasicAuth deprecation warning in the test run (the call itself has to stay)

2 participants