forked from galaxyproject/galaxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release_23.2' into dev
- Loading branch information
Showing
7 changed files
with
120 additions
and
47 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
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,40 @@ | ||
import yaml | ||
|
||
from galaxy.tool_util.parser.yaml import to_test_assert_list | ||
|
||
# Legacy style | ||
ASSERT_THAT_LIST = yaml.safe_load( | ||
""" | ||
- that: "has_text" | ||
text: "Number of input reads |\t1051466" | ||
- that: "has_text" | ||
text: "Uniquely mapped reads number |\t871202" | ||
""" | ||
) | ||
# New list of assertion style | ||
ASSERT_LIST = yaml.safe_load( | ||
""" | ||
- has_text: | ||
text: "Number of input reads |\t1051466" | ||
- has_text: | ||
text: "Uniquely mapped reads number |\t871202" | ||
""" | ||
) | ||
# Singleton assertion | ||
SIMPLE_ASSERT = {"has_text": {"text": "Number of input reads |\t1051466"}} | ||
|
||
|
||
def test_assert_that_list_to_test_assert_list(): | ||
to_test_assert_list(ASSERT_THAT_LIST) | ||
|
||
|
||
def test_assert_list_to_test_assert_list(): | ||
to_test_assert_list(ASSERT_LIST) | ||
|
||
|
||
def test_simple_assert_to_test_assert_list(): | ||
to_test_assert_list(SIMPLE_ASSERT) | ||
|
||
|
||
def test_assert_legacy_same_as_new_list_style(): | ||
assert to_test_assert_list(ASSERT_THAT_LIST) == to_test_assert_list(ASSERT_THAT_LIST) |