Skip to content

Commit 2800f02

Browse files
Merge pull request #50 from gisce/new_srad_component
Se ha añadido el indicadores de ESIOS para el precio marginal en el Servicio de Respuesta Activa de la Demanda
2 parents b66b357 + b118bb7 commit 2800f02

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

esios/indicators.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,3 +271,7 @@ class PriceMedioHorarioAJOMnocur(Indicator):
271271

272272
class PriceMedioHorarioAJOMcur(Indicator):
273273
path = 'indicators/1909'
274+
275+
276+
class PriceSRAD(Indicator):
277+
path = 'indicators/1930'

spec/indicators_spec.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -903,3 +903,16 @@
903903
expect(data['indicator']['name']).to(
904904
contain(u'Precio medio horario componente RD-L 10/2022 mercado diario e intradiario comercializadores de referencia')
905905
)
906+
907+
with it('Returns PriceMedioHorarioAJOMcur instance'):
908+
# 1930
909+
e = Esios(self.token)
910+
profile = PriceSRAD(e)
911+
assert isinstance(profile, PriceSRAD)
912+
data = profile.get(self.start_date, self.end_date)
913+
expect(data['indicator']['short_name']).to(
914+
equal(u'Precio marginal en el servicio de respuesta activa de la demanda')
915+
)
916+
expect(data['indicator']['name']).to(
917+
contain(u'Precio marginal en el servicio de respuesta activa de la demanda')
918+
)

0 commit comments

Comments
 (0)