GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — `parametrize` decorator does not work when placed above `staticmethod` · Issue #12863 · pytest-dev/pytest Closed Labels topic: collectionrelated to the collection phasetopic: marksrelated to marks, either the general marks or builtintopic: parametrizerelated to @pytest.mark.parametrizetopic: selectionrelated to test selection from the command linetype: bugproblem that needs to be addressed Description
from pytest import mark class TestA: @mark.parametrize("value", [1, 2]) @staticmethod def test_foo(value: int): """doesn't work""" @staticmethod @mark.parametrize("value", [1, 2]) def test_bar(value: int): """works""" output of pytest 8.3.3 it should ideally work for both, but if that's not feasible it should at least raise an exception saying that the decorators are in the wrong order Reacted by KotlinIsland Activity
MetadataMetadataAssigneesLabelstopic: collectionrelated to the collection phasetopic: marksrelated to marks, either the general marks or builtintopic: parametrizerelated to @pytest.mark.parametrizetopic: selectionrelated to test selection from the command linetype: bugproblem that needs to be addressed TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |