Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tab-cmd committed Oct 1, 2024
1 parent 6b0fe2d commit 7bae7da
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions bcipy/acquisition/datastream/mock/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def quit(self):
self.outlet = None


class SwitchGui(BCIGui): # pragma: no cover
class SwitchGui(BCIGui): # pragma: no cover
"""GUI to emulate a switch."""

def __init__(self, switch: Switch, *args, **kwargs):
Expand Down Expand Up @@ -71,7 +71,7 @@ def build_text(self) -> None:
font_size=16)


def main(switch: Switch): # pragma: no cover
def main(switch: Switch): # pragma: no cover
"""Creates a PyQt5 GUI with a single button in the middle. Performs the
switch action when clicked."""
gui = app(sys.argv)
Expand Down
2 changes: 1 addition & 1 deletion bcipy/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def bci_main(
return True


def bcipy_main() -> None: # pragma: no cover
def bcipy_main() -> None: # pragma: no cover
"""BciPy Main.
Command line interface used for running a registered experiment task in BciPy. To see what
Expand Down
10 changes: 5 additions & 5 deletions bcipy/task/tests/core/test_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
class TestActions(unittest.TestCase):

def setUp(self) -> None:
self.parameters = mock()
self.parameters_path = 'parameters_path'
self.data_directory = 'data/'
self.parameters = mock()
self.parameters_path = 'parameters_path'
self.data_directory = 'data/'

def tearDown(self) -> None:
unstub()
Expand All @@ -26,7 +26,7 @@ def test_code_hook_action_subprocess(self) -> None:
subprocess=True
)
response = action.execute()
self.assertIsInstance(response, TaskData)
self.assertIsInstance(response, TaskData)
verify(subprocess, times=1).Popen(code_hook, shell=True)

def test_code_hook_action_no_subprocess(self) -> None:
Expand Down Expand Up @@ -68,4 +68,4 @@ def test_experiment_field_collection_action(self) -> None:


if __name__ == '__main__':
unittest.main()
unittest.main()
1 change: 0 additions & 1 deletion bcipy/tests/test_bci_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ def test_bcipy_main_fails_with_invalid_experiment(self) -> None:
fake=self.fake
)


def test_bci_main_runs_with_valid_experiment(self) -> None:
when(main).validate_bcipy_session(any(), any()).thenReturn(True) # Mock the validate_bcipy_session function
when(main).load_json_parameters(
Expand Down

0 comments on commit 7bae7da

Please sign in to comment.