Skip to content

Commit

Permalink
Merge pull request #21 from gisce/fix_ct_7th_pos
Browse files Browse the repository at this point in the history
[FIX] CT 7th position
  • Loading branch information
asimon91 committed Sep 30, 2016
2 parents 55a5b9c + 549edb2 commit fbcd0a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cini/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,9 +465,9 @@ def cini(self):
c.positions[7] = pos_7[idx]
else:
if self.reparto:
c.positions[7] = 'V'
else:
c.positions[7] = 'Z'
else:
c.positions[7] = 'V'

return c

Expand Down
4 changes: 2 additions & 2 deletions spec/cts_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,12 +363,12 @@
with context('si no es de reparto o reflexión'):
with it('must be V'):
self.ct.transformadores = []
self.ct.reparto = True
self.ct.reparto = False
cini = self.ct.cini
expect(cini[7]).to(equal('V'))
with context('si es de reparto o reflexión'):
with it('must be Z'):
self.ct.transformadores = []
self.ct.reparto = False
self.ct.reparto = True
cini = self.ct.cini
expect(cini[7]).to(equal('Z'))

0 comments on commit fbcd0a8

Please sign in to comment.