Skip to content

Commit 96ac899

Browse files
fix: Fix pytest plugin declaration so it can be used without requiring pytest_plugins (#1943)
1 parent cf7cedd commit 96ac899

File tree

5 files changed

+2
-13
lines changed

5 files changed

+2
-13
lines changed

cookiecutter/mapper-template/{{cookiecutter.mapper_id}}/tests/conftest.py

Lines changed: 0 additions & 3 deletions
This file was deleted.

cookiecutter/tap-template/{{cookiecutter.tap_id}}/tests/conftest.py

Lines changed: 0 additions & 3 deletions
This file was deleted.

cookiecutter/target-template/{{cookiecutter.target_id}}/tests/conftest.py

Lines changed: 0 additions & 3 deletions
This file was deleted.

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,8 @@ module = [
198198
requires = ["poetry-core>=1.0.0"]
199199
build-backend = "poetry.core.masonry.api"
200200

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

204204
[tool.ruff]
205205
exclude = [

tests/conftest.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323

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

26-
pytest_plugins = ("singer_sdk.testing.pytest_plugin",)
27-
2826

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

0 commit comments

Comments
 (0)