Skip to content

Commit

Permalink
WIP: maybe dont want, more ps testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed Oct 2, 2024
1 parent 3dbbef6 commit a17f048
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/unit/app/tools/test_populate_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,18 @@ def test_populate_state():
assert state_new["b"][0]["c"] == 2
assert state_new["b"][0]["d"][0]["e"] == 3
assert state_new["b"][0]["d"][0]["f"]["h"] == 4


class TestMetadata(TestCase, UsesTools):
def setUp(self):
super().setUp()
self.setup_app()
self.trans = MockTrans(app=self.app)

def test_boolean_validation(self):
source_file_name = functional_test_tool_path("parameters/gx_data_column.xml")
tool = self._init_tool_for_path(source_file_name)
incoming = {"ref_parameter": {"src": "hda", "id": 89}, "parameter": "m89"}
state_new: Dict[str, Any] = {}
errors: Dict[str, Any] = {}
populate_state(self.trans, tool.inputs, incoming, state_new, errors=errors, check=True, input_format="21.01")

0 comments on commit a17f048

Please sign in to comment.