Skip to content

Commit 57e69b5

Browse files
committed
Fix existing tests
1 parent 5d74c1a commit 57e69b5

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

changelog/8456.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
The `required_plugins` config option now works correctly when pre-releases of plugins are installed, rather than falsely claiming that those plugins aren't installed at all.

testing/test_config.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -368,19 +368,19 @@ def pytest_configure(config):
368368
pytest.param(
369369
"""
370370
[pytest]
371-
required_plugins = pyplugin==1.6
371+
required_plugins = myplugin==1.6
372372
""",
373373
"1.5",
374-
"Missing required plugins: pyplugin==1.6",
374+
"Missing required plugins: myplugin==1.6",
375375
id="missing-version",
376376
),
377377
pytest.param(
378378
"""
379379
[pytest]
380-
required_plugins = pyplugin==1.6 other==1.0
380+
required_plugins = myplugin==1.6 other==1.0
381381
""",
382382
"1.5",
383-
"Missing required plugins: other==1.0, pyplugin==1.6",
383+
"Missing required plugins: myplugin==1.6, other==1.0",
384384
id="missing-versions",
385385
),
386386
pytest.param(

0 commit comments

Comments
 (0)