Skip to content

Commit

Permalink
🔧 circumvent PYTEST_DISABLE_PLUGIN_AUTOLOAD requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
Ousret committed Oct 24, 2024
1 parent 2b8575d commit d17b7b0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ jobs:
name: CI
secrets: inherit
uses: praw-dev/.github/.github/workflows/ci.yml@main
env:
# this avoids pytest loading betamax+Requests at boot.
# this allows us to patch betamax and makes it use Niquests instead.
PYTEST_DISABLE_PLUGIN_AUTOLOAD: "1"
with:
package: prawcore
name: CI
Expand Down
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,9 @@ suppress-none-returning = true

[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]


[tool.pytest.ini_options]
# this avoids pytest loading betamax+Requests at boot.
# this allows us to patch betamax and makes it use Niquests instead.
addopts = "-p no:pytest-betamax"

0 comments on commit d17b7b0

Please sign in to comment.