Skip to content

Commit 10a1af4

Browse files
sanit test of outputs rst
1 parent 72fd0dc commit 10a1af4

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

tests/geophires_x_schema_generator_tests/test_geophires_x_schema_generator.py

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,35 @@ def test_parameters_rst(self):
1111
rst = g.generate_parameters_reference_rst()
1212
self.assertIsNotNone(rst) # TODO sanity checks on content
1313

14+
def test_outputs_rst(self):
15+
g = GeophiresXSchemaGenerator()
16+
_, output_params_json = g.get_parameters_json()
17+
rst = g.get_output_params_table_rst(output_params_json)
18+
19+
self.assertIn(
20+
"""ECONOMIC PARAMETERS
21+
-------------------
22+
.. list-table:: ECONOMIC PARAMETERS Outputs
23+
:header-rows: 1
24+
25+
* - Name
26+
- Description
27+
- Preferred Units
28+
- Default Value Type
29+
* - Economic Model
30+
""",
31+
rst,
32+
)
33+
34+
self.assertIn(
35+
""" * - Project IRR
36+
- Project Internal Rate of Return
37+
- %
38+
- number
39+
""",
40+
rst,
41+
)
42+
1443
def test_get_json_schema(self):
1544
g = GeophiresXSchemaGenerator()
1645
req_schema, result_schema = g.generate_json_schema()

0 commit comments

Comments
 (0)