-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
topic: marksrelated to marks, either the general marks or builtinrelated to marks, either the general marks or builtintype: enhancementnew feature or API change, should be merged into features branchnew feature or API change, should be merged into features branchtype: feature-branchnew feature or API change, should be merged into features branchnew feature or API change, should be merged into features branchtype: proposalproposal for a new feature, often to gather opinions or design the API around the new featureproposal for a new feature, often to gather opinions or design the API around the new feature
Description
Example code below. Expected output: passing tests. Actual output, AssertionError.
import pytest
@pytest.fixture(scope='function', autouse=True)
def db_rollback(request):
assert request.node.get_marker('db_rollback_exempt')
@pytest.fixture(scope='function')
@pytest.mark.db_rollback_exempt
def context():
return True
def test_foo(context):
assert True
Metadata
Metadata
Assignees
Labels
topic: marksrelated to marks, either the general marks or builtinrelated to marks, either the general marks or builtintype: enhancementnew feature or API change, should be merged into features branchnew feature or API change, should be merged into features branchtype: feature-branchnew feature or API change, should be merged into features branchnew feature or API change, should be merged into features branchtype: proposalproposal for a new feature, often to gather opinions or design the API around the new featureproposal for a new feature, often to gather opinions or design the API around the new feature