Skip to content

Commit f4ad4db

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

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
@@ -199,8 +199,8 @@ module = [
199199
requires = ["poetry-core>=1.0.0"]
200200
build-backend = "poetry.core.masonry.api"
201201

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

205205
[tool.ruff]
206206
exclude = [

tests/conftest.py

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

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

27-
pytest_plugins = ("singer_sdk.testing.pytest_plugin",)
28-
2927

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

0 commit comments

Comments
 (0)