Skip to content

Commit

Permalink
Fix style check
Browse files Browse the repository at this point in the history
  • Loading branch information
teekuningas committed Feb 23, 2024
1 parent 97c68f0 commit 52eb896
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 0 additions & 2 deletions meggie/actions/epochs_create/tests/test_epochs_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@


class TestEpochsCreate(BaseTestAction):

def test_create_epochs_dialog(self):

def patched_exc_messagebox(parent, exc, exec_=False):
raise exc

Expand Down
1 change: 0 additions & 1 deletion meggie/actions/tfr_plot_tse/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@


class PlotTSE(Action):

def run(self):
"""Plots a TSE from TFR object."""
try:
Expand Down
7 changes: 3 additions & 4 deletions meggie/utilities/testing.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import os
os.environ['QT_QPA_PLATFORM'] = 'offscreen'

import tempfile
import pytest
import json
Expand All @@ -11,6 +8,8 @@

from meggie.utilities.generate_experiments import create_evoked_conditions_experiment

os.environ["QT_QPA_PLATFORM"] = "offscreen"


class MockMainWindow(QMainWindow):
def __init__(self, *args, **kwargs):
Expand All @@ -35,7 +34,7 @@ def load_action_spec(action_name):
class BaseTestAction:
@pytest.fixture(autouse=True)
def setup_common(self, qtbot, monkeypatch):
os.environ['QT_QPA_PLATFORM'] = 'offscreen'
os.environ["QT_QPA_PLATFORM"] = "offscreen"
self.qtbot = qtbot
self.monkeypatch = monkeypatch
self.mock_main_window = MockMainWindow()
Expand Down

0 comments on commit 52eb896

Please sign in to comment.