Skip to content

Commit

Permalink
Add 1367 indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmunoznovoa committed Oct 13, 2023
1 parent 5fa2f80 commit 1dce089
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions esios/indicators.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,8 @@ class mhpPowerFactorControl(Indicator):
class mhpEnergyBalanceFree(Indicator):
path = 'indicators/1366'

class mhpEnergyBalanceCUR(Indicator):
path = 'indicators/1367'

class mhpEnergyBalanceInc(Indicator):
path = 'indicators/1368'
Expand Down
12 changes: 12 additions & 0 deletions spec/indicators_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -783,6 +783,18 @@
expect(data['indicator']['name']).to(
contain(u'Precio medio horario componente incumplimiento energía de balance contratación libre')
)
with it('Returns mhpEnergyBalanceCUR instance'):
#1367
e = Esios(self.token)
profile = mhpEnergyBalanceCUR(e)
assert isinstance(profile, mhpEnergyBalanceCUR)
data = profile.get(self.start_date, self.end_date)
expect(data['indicator']['short_name']).to(
equal(u'Incumplimiento energía balance CR')
)
expect(data['indicator']['name']).to(
contain(u'Precio medio horario componente incumplimiento energía de balance comercialización de referencia')
)
with it('Returns mhpEnergyBalanceInc instance'):
# 1368
e = Esios(self.token)
Expand Down

0 comments on commit 1dce089

Please sign in to comment.