-
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.
Add test to check all the recipes can be created
- Loading branch information
1 parent
d618c34
commit 07ac428
Showing
5 changed files
with
20 additions
and
9 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
|
||
|
||
from numina.core import BaseRecipe | ||
|
||
from ..loader import load_drp | ||
|
||
|
||
def test_recipes_are_defined(): | ||
|
||
current_drp = load_drp() | ||
|
||
assert 'default' in current_drp.pipelines | ||
|
||
for pipeval in current_drp.pipelines.values(): | ||
for key, val in pipeval.recipes.items(): | ||
recipe = pipeval.get_recipe_object(key) | ||
assert isinstance(recipe, BaseRecipe) |