Skip to content

Commit

Permalink
WIP: adding failing test reproducing the bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rossant committed Jul 22, 2020
1 parent fe51ec9 commit de28fc8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions phy/apps/tests/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,19 @@ def diff(arr, axis=0): # pragma: no cover
rdf.set('diff')
assert rdf.current == 'diff'

def test_y1_close_view(self):
s = self.selected
self.next_best()
assert s != self.selected
fv = self.gui.get_view(FeatureView)
wv = self.gui.get_view(WaveformView)
assert self.selected == wv.cluster_ids
fv.dock.close()
s = self.selected
self.next_best()
assert s != self.selected
assert self.selected == wv.cluster_ids

def test_z1_close_all_views(self):
self.next()

Expand Down

0 comments on commit de28fc8

Please sign in to comment.