Skip to content

Commit

Permalink
Use select_from_url test data from github, not usegalaxy.org
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Dec 19, 2024
1 parent 1a91049 commit 0249268
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/galaxy/tools/parameters/cancelable_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ async def fetch_url(
method: REQUEST_METHOD = "GET",
):
async with session.request(method=method, url=url, params=params, data=data, headers=headers) as response:
return await response.json()
return await response.json(content_type=None)


async def async_request_with_timeout(
Expand Down
9 changes: 4 additions & 5 deletions test/functional/tools/select_from_url.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@ echo '$url_param_value_header_and_body' > '$param_value_header_and_body'
]]></command>
<inputs>
<param name="url_param_value" type="select">
<options from_url="https://usegalaxy.org/api/genomes">
</options>
<options from_url="https://raw.githubusercontent.com/galaxyproject/galaxy-test-data/refs/heads/url_select/genomes.json"></options>
</param>
<param name="dynamic_param_filtered_with_validator" type="select">
<!-- tested in test_build_module_filter_dynamic_select -->
<options from_url="https://usegalaxy.org/api/genomes">
<options from_url="https://raw.githubusercontent.com/galaxyproject/galaxy-test-data/refs/heads/url_select/genomes.json">
<filter type="param_value" ref="url_param_value" column="1" />
</options>
<validator type="no_options" message="Need at least one option here" />
Expand All @@ -24,14 +23,14 @@ echo '$url_param_value_header_and_body' > '$param_value_header_and_body'
</param>
-->
<param name="url_param_value_postprocessed" type="select">
<options from_url="https://usegalaxy.org/api/genomes/dm6">
<options from_url="https://raw.githubusercontent.com/galaxyproject/galaxy-test-data/refs/heads/url_select/dm6.json">
<postprocess_expression type="ecma5.1"><![CDATA[
$( Object.values(inputs.chrom_info).map((v) => [v.chrom, v.len]) )
]]></postprocess_expression>
</options>
</param>
<param name="invalid_url_param_value_postprocessed" type="select">
<options from_url="https://usegalaxy.or/api/genomes/dm6">
<options from_url="https://usegalaxy.or">
<postprocess_expression type="ecma5.1"><![CDATA[${
if (inputs) {
return Object.values(inputs.chrom_info).map((v) => [v.chrom, v.len])
Expand Down

0 comments on commit 0249268

Please sign in to comment.