Skip to content

Commit

Permalink
Dev pascal (#17)
Browse files Browse the repository at this point in the history
* change to all extref attributes

* fix tests get extrefs

* add get_inputs_goose_extrefs to LD
add get_children_LDs to IED

* Adding test for getters functions

* Ajout de get_IP_adr

* Ajout de get_IP_adr, correction sauts de lignes

* Corrections, remise à zéro de self.tIED

* Ajout de commentaires,

* get LD and get LN

* fix get_all_ieds

* intégration du get_IP_Adr et fixes

* fix python version requirement

* fix version

* change get_inputs_goose_extrefs

* fix tests

Co-authored-by: Pascal Senizergues <[email protected]>
Co-authored-by: gilles.guillet <[email protected]>
  • Loading branch information
3 people authored Oct 19, 2021
1 parent 83d3757 commit f8a2225
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_scd_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,9 +389,9 @@ def test_get_ied_extrefs(self):

result = ied.get_inputs_goose_extrefs()

assert len(result) == 526
assert result[0] == {'desc': 'DYN_LDASLD_Position filtree sectionneur_5_Dbpos_1_stVal_3', 'doName': 'Pos', 'iedName': 'IEDTEST_SITE_1', 'intAddr': 'VDF', 'ldInst': 'XX_BCU_4LINE2_1_LDCMDSL_1', 'lnClass': 'CSWI', 'lnInst': '0', 'pDO': 'Pos', 'pLN': 'CSWI', 'pServT': 'GOOSE', 'serviceType': 'GOOSE', 'srcCBName': 'PVR_LLN0_CB_GSE_EXT', 'srcLDInst': 'XX_BCU_4LINE2_1_LDCMDSL_1'}
assert result[525] == {'desc': 'DYN_LDTGSEC_U anormal_3_BehaviourModeKind_1_stVal_1', 'doName': 'EEHealth', 'iedName': 'SCU1A_SITE_1', 'intAddr': 'VDF', 'ldInst': 'LDITFUA', 'lnClass': 'ZBAT', 'lnInst': '3', 'pDO': 'EEHealth', 'pLN': 'ZBAT', 'pServT': 'GOOSE', 'serviceType': 'GOOSE', 'srcCBName': 'PVR_LLN0_CB_GSE_INT', 'srcLDInst': 'LDITFUA'}
assert len(result) == 535
assert result[0] == {'iedName': 'IEDTEST_SITE_1', 'ldInst': 'XX_BCU_4LINE2_1_LDCMDSL_1', 'lnClass': 'CSWI', 'lnInst': '0', 'doName': 'Pos', 'intAddr': 'VDF', 'serviceType': 'GOOSE', 'pLN': 'CSWI', 'pDO': 'Pos', 'pServT': 'GOOSE', 'srcLDInst': 'XX_BCU_4LINE2_1_LDCMDSL_1', 'srcCBName': 'PVR_LLN0_CB_GSE_EXT', 'desc': 'DYN_LDASLD_Position filtree sectionneur_5_Dbpos_1_stVal_3'}
assert result[525] == {'iedName': 'SCU1B_SITE_1', 'ldInst': 'LDITFUA', 'lnClass': 'SBAT', 'lnInst': '2', 'doName': 'BatEF', 'intAddr': 'VDF', 'serviceType': 'GOOSE', 'pLN': 'SBAT', 'pDO': 'BatEF', 'pServT': 'GOOSE', 'srcLDInst': 'LDITFUA', 'srcCBName': 'PVR_LLN0_CB_GSE_INT', 'desc': 'DYN_LDTGSEC_Terre Batterie UA_2_BOOLEAN_1_stVal_2'}

def test_get_ied_lds(self):
ied = self.scd.get_IED_by_name('AUT1A_SITE_1')
Expand Down

0 comments on commit f8a2225

Please sign in to comment.