20
20
@pytest .mark .parametrize ("dummy_LDV" , [False , True ])
21
21
@pytest .mark .parametrize ("years" , ["A" , "B" ])
22
22
@pytest .mark .parametrize (
23
- "regions" , [param ("ISR" , marks = testing .MARK [3 ]), "R11" , "R12" , "R14" ]
23
+ "regions" ,
24
+ [
25
+ param ("ISR" , marks = testing .MARK [3 ]),
26
+ "R11" ,
27
+ "R12" ,
28
+ pytest .param ("R14" , marks = testing .MARK [9 ]),
29
+ ],
24
30
)
25
31
def test_get_ldv_data (tmp_path , test_context , dummy_LDV , regions , years ) -> None :
26
32
# Info about the corresponding RES
@@ -80,6 +86,9 @@ def test_get_ldv_data(tmp_path, test_context, dummy_LDV, regions, years) -> None
80
86
)
81
87
82
88
# Output data is returned and has the correct units
89
+ # for k, df_group in data["output"].groupby("unit"):
90
+ # if k == "": # DEBUG Show data with particular units
91
+ # print(df_group.to_string())
83
92
assert {"Gp km" , "Gv km" , "Gv * km" , "km" , "-" } >= set (
84
93
data ["output" ]["unit" ].unique ()
85
94
)
@@ -170,7 +179,7 @@ def include(arg):
170
179
[
171
180
("R11" , 11 ),
172
181
("R12" , 12 ),
173
- ("R14" , 14 ),
182
+ param ("R14" , 14 , marks = testing . MARK [ 9 ] ),
174
183
],
175
184
)
176
185
def test_ldv_capacity_factor (test_context , regions , N_node_loc , years = "B" ):
@@ -192,7 +201,7 @@ def test_ldv_capacity_factor(test_context, regions, N_node_loc, years="B"):
192
201
(False , "R11" , "A" ),
193
202
(False , "R11" , "B" ),
194
203
(False , "R12" , "B" ),
195
- (False , "R14" , "A" ),
204
+ param (False , "R14" , "A" , marks = testing . MARK [ 9 ] ),
196
205
# Not implemented
197
206
param (False , "ISR" , "A" , marks = testing .MARK [3 ]),
198
207
],
0 commit comments