Skip to content

Commit 9ff63ee

Browse files
blueyedjpic
authored andcommitted
Fix RemovedInPytest4Warning with dbdiff marks
Fixes yourlabs#14. Closes yourlabs#13.
1 parent cc1a53a commit 9ff63ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dbdiff/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def your_test():
1414

1515
@pytest.fixture(autouse=True)
1616
def _dbdiff_marker(request):
17-
marker = request.keywords.get('dbdiff', None)
17+
marker = request.node.get_closest_marker('dbdiff')
1818
if not marker:
1919
return
2020

0 commit comments

Comments
 (0)