From d512049a4aa98c0cc82e5376703e6eebd7734697 Mon Sep 17 00:00:00 2001 From: Matthias Bernt Date: Wed, 9 Dec 2020 21:52:43 +0100 Subject: [PATCH] more specific functional tool tests involving fasta_indexes.loc rename entries such that they are suffixed by the column name (execpt for dbkey). this makes tests more specific, because this ensures that always the correct column is used. --- lib/galaxy_test/api/test_tools.py | 4 +-- test/functional/tool-data/fasta_indexes.loc | 4 +-- .../tools/dbkey_filter_collection.xml | 16 +++++----- test/functional/tools/dbkey_filter_input.xml | 6 ++-- .../tools/dbkey_filter_multi_input.xml | 6 ++-- test/functional/tools/dbkey_output_action.xml | 2 +- .../functional/tools/filter_static_regexp.xml | 32 +++++++++---------- test/functional/tools/remove_value.xml | 8 ++--- test/functional/tools/select_from_dataset.xml | 20 ++++++------ 9 files changed, 49 insertions(+), 49 deletions(-) diff --git a/lib/galaxy_test/api/test_tools.py b/lib/galaxy_test/api/test_tools.py index e8c5d8f9e00..6a81373ebb4 100644 --- a/lib/galaxy_test/api/test_tools.py +++ b/lib/galaxy_test/api/test_tools.py @@ -1217,7 +1217,7 @@ class ToolsTestCase(ApiTestCase, TestsTools): tool_test_dicts = [{ "inputs": { "input": ["simple_line.txt"], - "index": ["hg18"], + "index": ["hg18_value"], }, "outputs": {}, "required_files": [['simple_line.txt', {'value': 'simple_line.txt', 'dbkey': 'hg18'}]], @@ -1235,7 +1235,7 @@ class ToolsTestCase(ApiTestCase, TestsTools): tool_test_dicts = [{ "inputs": { "input": ["simple_line.txt"], - "index": ["hg18"], + "index": ["hg18_value"], }, "outputs": {}, "required_files": [['simple_line.txt', {'value': 'simple_line.txt', 'dbkey': 'hgnot18'}]], diff --git a/test/functional/tool-data/fasta_indexes.loc b/test/functional/tool-data/fasta_indexes.loc index 3383ed89752..57f11daa9a9 100644 --- a/test/functional/tool-data/fasta_indexes.loc +++ b/test/functional/tool-data/fasta_indexes.loc @@ -1,2 +1,2 @@ -hg19 hg19 hg19 hg19 -hg18 hg18 hg18 hg18 \ No newline at end of file +hg19_value hg19 hg19_name hg19_path +hg18_value hg18 hg18_name hg18_path diff --git a/test/functional/tools/dbkey_filter_collection.xml b/test/functional/tools/dbkey_filter_collection.xml index eeb5937336e..ed8b5a13d8f 100644 --- a/test/functional/tools/dbkey_filter_collection.xml +++ b/test/functional/tools/dbkey_filter_collection.xml @@ -31,9 +31,9 @@ - + - + @@ -44,10 +44,10 @@ - + - + @@ -58,9 +58,9 @@ - + - + @@ -71,9 +71,9 @@ - + - + diff --git a/test/functional/tools/dbkey_filter_input.xml b/test/functional/tools/dbkey_filter_input.xml index ae04f6fc58f..8bf19cdd574 100644 --- a/test/functional/tools/dbkey_filter_input.xml +++ b/test/functional/tools/dbkey_filter_input.xml @@ -21,19 +21,19 @@ cat '$inputs' > '$output' - + - + - + diff --git a/test/functional/tools/dbkey_filter_multi_input.xml b/test/functional/tools/dbkey_filter_multi_input.xml index df04926938d..9463440c2af 100644 --- a/test/functional/tools/dbkey_filter_multi_input.xml +++ b/test/functional/tools/dbkey_filter_multi_input.xml @@ -23,19 +23,19 @@ - + - + - + diff --git a/test/functional/tools/dbkey_output_action.xml b/test/functional/tools/dbkey_output_action.xml index 128e43d721f..1d29a0b4e65 100644 --- a/test/functional/tools/dbkey_output_action.xml +++ b/test/functional/tools/dbkey_output_action.xml @@ -26,7 +26,7 @@ echo foo > '$mapped_reads' - + diff --git a/test/functional/tools/filter_static_regexp.xml b/test/functional/tools/filter_static_regexp.xml index ebfcd0756e8..090f8835e8d 100644 --- a/test/functional/tools/filter_static_regexp.xml +++ b/test/functional/tools/filter_static_regexp.xml @@ -45,10 +45,10 @@ echo $index_regexp_keep >> '$output' && - - - - + + + + @@ -60,24 +60,24 @@ echo $index_regexp_keep >> '$output' && - - - - + + + + - - - - + + + + - - - - + + + + diff --git a/test/functional/tools/remove_value.xml b/test/functional/tools/remove_value.xml index 5671e27e278..b01e01a24f5 100644 --- a/test/functional/tools/remove_value.xml +++ b/test/functional/tools/remove_value.xml @@ -6,8 +6,8 @@ echo $choose_value > '$out_file' - - + + @@ -21,12 +21,12 @@ echo $choose_value > '$out_file' - + - + diff --git a/test/functional/tools/select_from_dataset.xml b/test/functional/tools/select_from_dataset.xml index 3a67ac01db8..14c89aa1877 100644 --- a/test/functional/tools/select_from_dataset.xml +++ b/test/functional/tools/select_from_dataset.xml @@ -5,7 +5,7 @@ echo select_single '$select_single' > '$output' && echo select_multiple '$select_multiple' >> '$output' && echo select_collection '$select_collection' >> '$output' ]]> - + @@ -22,14 +22,14 @@ echo select_collection '$select_collection' >> '$output' - + - + @@ -39,16 +39,16 @@ echo select_collection '$select_collection' >> '$output' - + - - - - + + + + - - + +