Skip to content

Commit 3f28cbb

Browse files
feat: add start_mark import and usage in YamlItem location
refactor: update import path for start_mark
1 parent 032ca47 commit 3f28cbb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tavern/_core/pytest/item.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from tavern._core.report import attach_text
1818
from tavern._core.run import run_test
1919
from tavern._core.schema.files import verify_tests
20+
from tavern._core.stage_lines import start_mark
2021

2122
from .config import TestConfig
2223
from .util import load_global_cfg
@@ -83,7 +84,7 @@ def initialise_fixture_attrs(self) -> None:
8384
def location(self):
8485
"""get location in file"""
8586
location = super().location
86-
location = (location[0], self.spec.start_mark.line, location[2])
87+
location = (location[0], start_mark(self.spec).line, location[2])
8788
return location
8889

8990
# Hack to stop issue with pytest-rerunfailures

0 commit comments

Comments
 (0)