Add implementation of parse_interactivetool to CwlToolSource class

In https://github.com/galaxyproject/galaxy/pull/7494 and
https://github.com/galaxyproject/galaxy/pull/8574 , the abstract
`parse_interactivetool()` method was added to the `ToolSource` class
without a corresponding implementation in its `CwlToolSource` subclass,
leading to the following error:

```
In [4]: from galaxy.tool_util.parser.cwl import CwlToolSource
In [5]: cts = CwlToolSource('path')
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-6-2f94370fb293> in <module>()
----> 1 cts = CwlToolSource('path')

TypeError: Can't instantiate abstract class CwlToolSource with abstract methods parse_interactivetool
```
This commit is contained in:
Nicola Soranzo
2019-12-19 13:56:58 +00:00
parent 5759160036
commit 3a914e4ed0
+3
View File
@@ -100,6 +100,9 @@ class CwlToolSource(ToolSource):
def parse_description(self):
return self.tool_proxy.description()
def parse_interactivetool(self):
return []
def parse_input_pages(self):
page_source = CwlPageSource(self.tool_proxy)
return PagesSource([page_source])