Skip to content

Commit

Permalink
Fix LayerArtistView test
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Jul 13, 2017
1 parent 2e8200e commit 24d204e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions glue/core/qt/tests/test_layer_artist_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from qtpy.QtCore import Qt
from qtpy import PYQT5
from glue.core import Data
from glue.core import Data, Hub
from glue.core.layer_artist import MatplotlibLayerArtist as _LayerArtist

from ..layer_artist_model import LayerArtistModel, LayerArtistView
Expand Down Expand Up @@ -217,7 +217,8 @@ class TestLayerArtistView(object):

def setup_method(self, method):
self.model, self.artists = setup_model(2)
self.view = LayerArtistView()
self.hub = Hub()
self.view = LayerArtistView(hub=self.hub)
self.view.setModel(self.model)

def test_current_row(self):
Expand Down

0 comments on commit 24d204e

Please sign in to comment.