mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Reformat select parameter test call to satisfy black
Signed-off-by: Sai Asish Y <say.apm35@gmail.com>
This commit is contained in:
@@ -30,9 +30,7 @@ class TestSelectToolParameter(BaseParameterTestCase):
|
||||
def test_dict_value_is_invalid_option(self):
|
||||
# A dict value is unhashable; checking it against the set of legal
|
||||
# values used to raise an opaque "unhashable type: 'dict'" TypeError.
|
||||
param = self._parameter_for(
|
||||
xml="""<param name="my_name" type="select"><option value="a">A</option></param>"""
|
||||
)
|
||||
param = self._parameter_for(xml="""<param name="my_name" type="select"><option value="a">A</option></param>""")
|
||||
with pytest.raises(ValueError) as exc_info:
|
||||
param.from_json({"not": "valid"}, self.trans)
|
||||
assert "an invalid option" in str(exc_info.value)
|
||||
|
||||
Reference in New Issue
Block a user