Skip to content

Commit

Permalink
Merge pull request #43 from gisce/new_add_1901_indicator
Browse files Browse the repository at this point in the history
Se ha añadido el indicador de ESIOS para el Predio horario de mercado diario e intradiario del componente RDL 10/2022
  • Loading branch information
davidmunoznovoa authored Jul 13, 2022
2 parents 3a1efb2 + 79b1eb5 commit 7b7c31e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions esios/indicators.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,3 +235,7 @@ class mhpEnergyBalanceInc(Indicator):

class PriceEnergiaExcedentariaAutoconsumCompensacioSimplificada(Indicator):
path = 'indicators/1739'


class PriceMedioHorarioComponenteRDL102022Cur(Indicator):
path = 'indicators/1901'
12 changes: 12 additions & 0 deletions spec/indicators_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -795,3 +795,15 @@
expect(data['indicator']['name']).to(
contain(u'Precio medio horario componente incumplimiento energ\xeda de balance ')
)
with it('Returns PriceMedioHorarioComponenteRDL102022Cur instance'):
#1901
e = Esios(self.token)
profile = PriceMedioHorarioComponenteRDL102022Cur(e)
assert isinstance(profile, PriceMedioHorarioComponenteRDL102022Cur)
data = profile.get(self.start_date, self.end_date)
expect(data['indicator']['short_name']).to(
equal(u'Mecanismo de ajuste TOT_MAJ3')
)
expect(data['indicator']['name']).to(
contain(u'Precio medio horario componente RD-L 10/2022 mercado diario e intradiario - diferencia por liquidaci\xf3n con medidas ')
)

0 comments on commit 7b7c31e

Please sign in to comment.