@@ -68,6 +68,7 @@ def country_code_to():
68
68
"query_generation_per_plant" ,
69
69
"query_installed_generation_capacity" ,
70
70
"query_installed_generation_capacity_per_unit" ,
71
+ "query_aggregate_water_reservoirs_and_hydro_storage" ,
71
72
]
72
73
73
74
CROSSBORDER_QUERIES = [
@@ -77,7 +78,6 @@ def country_code_to():
77
78
"query_net_transfer_capacity_weekahead" ,
78
79
"query_net_transfer_capacity_monthahead" ,
79
80
"query_net_transfer_capacity_yearahead" ,
80
- "query_intraday_offered_capacity" ,
81
81
]
82
82
83
83
# XML
@@ -104,10 +104,27 @@ def test_crossborder_queries(
104
104
assert valid_xml (result )
105
105
106
106
107
+ def test_query_intraday_offered_capacity (client , country_code_from , country_code_to , start , end ):
108
+ result = client .query_intraday_offered_capacity (
109
+ country_code_from , country_code_to , start , end , implicit = True
110
+ )
111
+ assert isinstance (result , str )
112
+ assert valid_xml (result )
113
+
114
+
115
+ def test_query_offered_capacity (client , country_code_from , country_code_to , start , end ):
116
+ contract_marketagreement_type = "A01"
117
+ result = client .query_offered_capacity (
118
+ country_code_from , country_code_to , start , end , contract_marketagreement_type , implicit = True
119
+ )
120
+ assert isinstance (result , str )
121
+ assert valid_xml (result )
122
+
123
+
107
124
def test_query_contracted_reserve_prices (client , country_code , start , end ):
108
125
type_marketagreement_type = "A01"
109
126
result = client .query_contracted_reserve_prices (
110
- country_code , start , end , type_marketagreement_type
127
+ country_code , start , end , type_marketagreement_type , psr_type = None
111
128
)
112
129
assert isinstance (result , str )
113
130
assert valid_xml (result )
@@ -116,17 +133,16 @@ def test_query_contracted_reserve_prices(client, country_code, start, end):
116
133
def test_query_contracted_reserve_amount (client , country_code , start , end ):
117
134
type_marketagreement_type = "A01"
118
135
result = client .query_contracted_reserve_amount (
119
- country_code , start , end , type_marketagreement_type
136
+ country_code , start , end , type_marketagreement_type , psr_type = None
120
137
)
121
138
assert isinstance (result , str )
122
139
assert valid_xml (result )
123
140
124
141
125
142
def test_query_procured_balancing_capacity_bytearray (client , country_code , start , end ):
126
- type_marketagreement_type = "A01"
127
143
process_type = "A47"
128
144
result = client .query_procured_balancing_capacity (
129
- country_code , start , end , process_type , type_marketagreement_type
145
+ country_code , start , end , process_type , type_marketagreement_type = None
130
146
)
131
147
assert isinstance (result , str )
132
148
assert valid_xml (result )
@@ -143,25 +159,25 @@ def test_query_procured_balancing_capacity_process_type_not_allowed(client):
143
159
# ZIP
144
160
145
161
def test_query_imbalance_prices (client , country_code , start , end ):
146
- result = client .query_imbalance_prices (country_code , start , end )
162
+ result = client .query_imbalance_prices (country_code , start , end , psr_type = None )
147
163
assert isinstance (result , (bytes , bytearray ))
148
164
149
165
150
166
def test_query_unavailability_of_generation_units (client , country_code , start , end ):
151
- result = client .query_unavailability_of_generation_units (country_code , start , end ,)
167
+ result = client .query_unavailability_of_generation_units (country_code , start , end , docstatus = None , periodstartupdate = None , periodendupdate = None )
152
168
assert isinstance (result , (bytes , bytearray ))
153
169
154
170
155
171
def test_query_unavailability_of_production_units (client , country_code , start , end ):
156
- result = client .query_unavailability_of_production_units (country_code , start , end ,)
172
+ result = client .query_unavailability_of_production_units (country_code , start , end , docstatus = None , periodstartupdate = None , periodendupdate = None )
157
173
assert isinstance (result , (bytes , bytearray ))
158
174
159
175
160
176
def test_query_unavailability_transmission (
161
177
client , country_code_from , country_code_to , start , end
162
178
):
163
179
result = client .query_unavailability_transmission (
164
- country_code_from , country_code_to , start , end ,
180
+ country_code_from , country_code_to , start , end , docstatus = None , periodstartupdate = None , periodendupdate = None
165
181
)
166
182
assert isinstance (result , (bytes , bytearray ))
167
183
0 commit comments