-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a2c24f4
commit 466586a
Showing
4 changed files
with
60 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from meggie.utilities.testing import BaseTestAction | ||
from meggie.actions.evoked_create import CreateEvoked | ||
from meggie.utilities.dialogs.simpleDialogMain import SimpleDialog | ||
|
||
|
||
class TestEvokedCreate(BaseTestAction): | ||
def test_evoked_create(self): | ||
|
||
data = {"inputs": {"epochs": ["Epochs"]}} | ||
|
||
self.run_action( | ||
action_name="evoked_create", | ||
handler=CreateEvoked, | ||
data=data, | ||
patch_paths=["meggie.utilities.dialogs.simpleDialogMain"], | ||
) | ||
dialog = self.find_dialog(SimpleDialog) | ||
dialog.accept() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from meggie.utilities.testing import BaseTestAction | ||
from meggie.actions.evoked_delete import DeleteEvoked | ||
|
||
|
||
class TestEvokedDelete(BaseTestAction): | ||
def test_evoked_delete(self): | ||
|
||
data = {"outputs": {"evoked": ["Evoked"]}} | ||
|
||
self.run_action( | ||
action_name="evoked_delete", | ||
handler=DeleteEvoked, | ||
data=data, | ||
patch_paths=["meggie.actions.evoked_delete"], | ||
) |
15 changes: 15 additions & 0 deletions
15
meggie/actions/evoked_delete_from_all/tests/test_epochs_delete_from_all.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from meggie.utilities.testing import BaseTestAction | ||
from meggie.actions.evoked_delete_from_all import DeleteEvokedFromAll | ||
|
||
|
||
class TestEvokedDeleteFromAll(BaseTestAction): | ||
def test_evoked_delete_from_all(self): | ||
|
||
data = {"outputs": {"evoked": ["Evoked"]}} | ||
|
||
self.run_action( | ||
action_name="evoked_delete_from_all", | ||
handler=DeleteEvokedFromAll, | ||
data=data, | ||
patch_paths=["meggie.actions.evoked_delete_from_all"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters