Skip to content

Fix pytest class-scoped fixture deprecation - #397

Closed
manav252 wants to merge 1 commit into
cosai-oasis:mainfrom
manav252:fix-pytest-class-fixture
Closed

Fix pytest class-scoped fixture deprecation#397
manav252 wants to merge 1 commit into
cosai-oasis:mainfrom
manav252:fix-pytest-class-fixture

Conversation

@manav252

@manav252 manav252 commented Jul 2, 2026

Copy link
Copy Markdown

Summary

  • Convert the class-scoped framework_entries fixture to a classmethod.
  • Avoid the pytest 10 deprecation warning for class-scoped fixtures defined as instance methods.

Validation

  • PYTHONPATH=./scripts/hooks .venv/bin/pytest scripts/hooks/tests/test_frameworks_schema_v027.py -W error::pytest.PytestRemovedIn10Warning -q
  • Result: 140 passed

Addresses #383.

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@davidlabianca

Copy link
Copy Markdown
Contributor

Closing due to lack of CLA completion

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.

3 participants