Files
galaxy/test/unit/tool_util_models/test_simple_parse.py
T
John Chilton f91012244b New packages galaxy-tool-util-models, galaxy-tool-shed-schema.
The galaxy-tool-shed-schema package is basically pydantic models for the whole tool shed API. It is used by both the backend code for the new tool shed and the testing code that runs on both the old and new tool shed.

The creation of galaxy-tool-util-models package is something I've wanted to do for a while - it should solve some TODOs I've left in the base. I think beyond enabling galaxy-tool-shed-schema package - the other nice thing is that galaxy-schema code can now rely on various tool stuff without requiring dependency on any of the parser or runtime code.

This should also fix things for the new record types in #19377. I've introduced a type that can be used tools and is included schema for collection creation. The galaxy-tool-util-models packages can now be dependended on by galaxy-schema and galaxy-tool-util and these two packages do not need to depend on each other - either direction of that dependency would make me uncomfortable. xref
https://github.com/galaxyproject/galaxy/actions/runs/13704893929/job/38327692654?pr=19377
2025-04-16 12:47:37 +02:00

24 lines
557 B
Python

from galaxy.tool_util_models import Tests
simple_json_test = """
[{ "doc": "Test simple use of __ZIP_COLLECTION__ in a workflow.",
"job": {
"test_input_1": "samp1 10.0 samp2 20.0 ",
"test_input_2": "samp1 20.0 samp2 40.0 "
},
"outputs": {
"out": {
"asserts": [
{"that": "has_text",
"text": "samp1 10.0 samp2 20.0 samp1 20.0 samp2 40.0"
}
]
}
}
}]
"""
def test_simple_validate():
Tests.model_validate_json(simple_json_test)