Skip to content

Commit

Permalink
Comment out GUI test for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
rossant committed Dec 10, 2024
1 parent efef553 commit 3ca5b96
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions src/iblphotometry_tests/test_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,24 +194,24 @@ def test_plot_event_tick(self):
plots.plot_event_tick(t_events)
plt.close('all')

def test_gui(self):
df_nph, _, fs = self.get_test_data()
processed_signal = df_nph['signal_processed'].values
times = df_nph['times'].values
trials = pd.read_parquet(self.paths['trials_table_kcenia_pqt'])

from PyQt5.QtWidgets import QApplication
app = QApplication(sys.argv) # noqa
window = BehaviorVisualizerGUI()
window.set_data(processed_signal, times)
window.load_trials(trials)
window.show()
# Uncomment to debug
# app.exec_()


if __name__ == '__main__':
suite = unittest.TestSuite()
suite.addTest(TestPlotters("test_gui"))
runner = unittest.TextTestRunner()
runner.run(suite)
# def test_gui(self):
# df_nph, _, fs = self.get_test_data()
# processed_signal = df_nph['signal_processed'].values
# times = df_nph['times'].values
# trials = pd.read_parquet(self.paths['trials_table_kcenia_pqt'])

# from PyQt5.QtWidgets import QApplication
# app = QApplication(sys.argv)
# window = BehaviorVisualizerGUI()
# window.set_data(processed_signal, times)
# window.load_trials(trials)
# window.show()
# # Uncomment to debug
# app.exec_()


# if __name__ == '__main__':
# suite = unittest.TestSuite()
# suite.addTest(TestPlotters("test_gui"))
# runner = unittest.TextTestRunner()
# runner.run(suite)

0 comments on commit 3ca5b96

Please sign in to comment.