Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion tests/test_bounding_box.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from redbaron import RedBaron


@pytest.fixture
def red():
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
def red():
@pytest.fixture
def red():
"""Create an FST object for testing."""
return construct_fst()
def construct_fst()
"""Return an FST object."""

return RedBaron("""\
@deco
Expand All @@ -17,6 +16,11 @@ def a(c, d):
""")


@pytest.fixture(name="red")
def red_fixture():
return red()


fst = red()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
fst = red()
fst = construct_fst()

bounding_boxes = [
(((1, 1), (4, 0)), ((1, 1), (4, 0)), fst),
Expand Down