- add request.node which maps to the collection node as specified by the scope.

- remove request.markers which is now available via request.node.markers
This commit is contained in:
holger krekel
2012-09-17 20:43:37 +02:00
parent c2480f5c54
commit 631d311e89
3 changed files with 12 additions and 10 deletions

View File

@@ -741,7 +741,7 @@ class TestMarking:
import pytest
@pytest.factory()
def markers(request):
return request.markers
return request.node.markers
@pytest.mark.XYZ
def test_function(markers):
assert markers.XYZ is not None
@@ -755,7 +755,7 @@ class TestMarking:
import pytest
@pytest.factory()
def markers(request):
return request.markers
return request.node.markers
@pytest.setup(scope="class")
def marking(request):