Skip to content

Commit

Permalink
fix: Fix pytest plugin declaration so it can be used without requirin…
Browse files Browse the repository at this point in the history
…g `pytest_plugins` (#1943)
  • Loading branch information
edgarrmondragon committed Sep 25, 2023
1 parent 61747d7 commit 998ab3e
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 13 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ module = [
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

[tool.poetry.scripts]
pytest11 = { reference = "singer_sdk:testing.pytest_plugin", extras = ["testing"], type = "console" }
[tool.poetry.plugins."pytest11"]
singer_testing = "singer_sdk.testing.pytest_plugin"

[tool.ruff]
exclude = [
Expand Down
2 changes: 0 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@

SYSTEMS = {"linux", "darwin", "windows"}

pytest_plugins = ("singer_sdk.testing.pytest_plugin",)


def pytest_collection_modifyitems(config: Config, items: list[pytest.Item]):
rootdir = pathlib.Path(config.rootdir)
Expand Down

0 comments on commit 998ab3e

Please sign in to comment.