-
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
d60faa6
commit 18b3f99
Showing
6 changed files
with
99 additions
and
3 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
meggie/actions/epochs_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.epochs_delete_from_all import DeleteEpochsFromAll | ||
|
||
|
||
class TestEpochsDeleteFromAll(BaseTestAction): | ||
def test_epochs_delete_from_all(self): | ||
|
||
data = {"outputs": {"epochs": ["Epochs"]}} | ||
|
||
self.run_action( | ||
action_name="epochs_delete_from_all", | ||
handler=DeleteEpochsFromAll, | ||
data=data, | ||
patch_paths=["meggie.actions.epochs_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from meggie.utilities.testing import BaseTestAction | ||
from meggie.actions.epochs_info import Info | ||
|
||
|
||
class TestEpochsInfo(BaseTestAction): | ||
def test_epochs_info(self): | ||
|
||
data = {"outputs": {"epochs": ["Epochs"]}} | ||
|
||
content = self.run_action( | ||
action_name="epochs_info", | ||
handler=Info, | ||
data=data, | ||
patch_paths=["meggie.actions.epochs_info"], | ||
) | ||
assert content |
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.epochs_plot import PlotEpochs | ||
|
||
|
||
class TestPlotEpochs(BaseTestAction): | ||
def test_epochs_plot(self): | ||
|
||
data = {"outputs": {"epochs": ["Epochs"]}} | ||
|
||
self.run_action( | ||
action_name="epochs_plot", | ||
handler=PlotEpochs, | ||
data=data, | ||
patch_paths=["meggie.actions.epochs_plot"], | ||
) |
15 changes: 15 additions & 0 deletions
15
meggie/actions/epochs_plot_image/tests/test_epochs_plot_image.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.epochs_plot_image import PlotEpochsImage | ||
|
||
|
||
class TestPlotEpochsImage(BaseTestAction): | ||
def test_epochs_plot_image(self): | ||
|
||
data = {"outputs": {"epochs": ["Epochs"]}} | ||
|
||
self.run_action( | ||
action_name="epochs_plot_image", | ||
handler=PlotEpochsImage, | ||
data=data, | ||
patch_paths=["meggie.actions.epochs_plot_image"], | ||
) |
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
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