How to use the ephemeris.shed_tools_methods.flatten_repo_info function in ephemeris

To help you get started, we’ve selected a few ephemeris examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github galaxyproject / ephemeris / tests / test_shed_tools_methods.py View on Github external
def test_flatten_repo_info_invalid_key():
    test_repositories = [
        dict(name="bwa",
             owner="devteam",
             tool_panel_section_label="NGS: Alignment",
             tool_shed_url="toolshed.g2.bx.psu.edu",
             sesame_ouvre_toi="This is an invalid key")
    ]
    flattened_repos = flatten_repo_info(test_repositories)

    assert "sesame_ouvre_toi" not in flattened_repos[0].keys()
    assert "tool_shed_url" in flattened_repos[0].keys()
github galaxyproject / ephemeris / tests / test_shed_tools_methods.py View on Github external
def test_flatten_repo_info():
    test_repositories = [
        dict(name="bwa",
             owner="devteam",
             tool_panel_section_label="NGS: Alignment",
             revisions=["1", "2"]),
        dict(name="bowtie2",
             owner="devteam",
             tool_panel_section_label="NGS: Alignment",
             changeset_revisions=["3", "4"])
    ]
    flattened_repos = flatten_repo_info(test_repositories)
    assert (flattened_repos == [
        dict(name="bwa",
             owner="devteam",
             tool_panel_section_label="NGS: Alignment",
             changeset_revision="1"),
        dict(name="bwa",
             owner="devteam",
             tool_panel_section_label="NGS: Alignment",
             changeset_revision="2"),
        dict(name="bowtie2",
             owner="devteam",
             tool_panel_section_label="NGS: Alignment")
    ])