Skip to content

Commit

Permalink
Use labels obj instead of filename in test.
Browse files Browse the repository at this point in the history
  • Loading branch information
ntabris committed Feb 17, 2020
1 parent df39684 commit 14915c7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/gui/test_grid_system.py
Expand Up @@ -3,8 +3,9 @@
from sleap.gui.commands import *


def test_grid_system_midpoint_gui(qtbot, midpoint_grid_labels_path):
app = MainWindow(midpoint_grid_labels_path)
def test_grid_system_midpoint_gui(qtbot, midpoint_grid_labels):
app = MainWindow()
app.loadLabelsObject(midpoint_grid_labels)

assert len(app.state["labeled_frame"]) == 1
lf = app.state["labeled_frame"]
Expand Down Expand Up @@ -38,8 +39,9 @@ def test_grid_system_midpoint_gui(qtbot, midpoint_grid_labels_path):
assert qt_node.scenePos().y() == 0.5


def test_grid_system_legacy_gui(qtbot, legacy_grid_labels_path):
app = MainWindow(legacy_grid_labels_path)
def test_grid_system_legacy_gui(qtbot, legacy_grid_labels):
app = MainWindow()
app.loadLabelsObject(legacy_grid_labels)

assert len(app.state["labeled_frame"]) == 1
lf = app.state["labeled_frame"]
Expand Down

0 comments on commit 14915c7

Please sign in to comment.