File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
tests/geophires_x_schema_generator_tests Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,35 @@ def test_parameters_rst(self):
11
11
rst = g .generate_parameters_reference_rst ()
12
12
self .assertIsNotNone (rst ) # TODO sanity checks on content
13
13
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
+
14
43
def test_get_json_schema (self ):
15
44
g = GeophiresXSchemaGenerator ()
16
45
req_schema , result_schema = g .generate_json_schema ()
You can’t perform that action at this time.
0 commit comments