From c330192e3b7d333870bd957385911768610c4b58 Mon Sep 17 00:00:00 2001 From: "pascale.noyret" Date: Mon, 29 Mar 2021 16:25:39 +0200 Subject: [PATCH] ajout cata de tests --- Tests/MappingAccasXsd/cata_Tuples.py | 53 ++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 Tests/MappingAccasXsd/cata_Tuples.py diff --git a/Tests/MappingAccasXsd/cata_Tuples.py b/Tests/MappingAccasXsd/cata_Tuples.py new file mode 100644 index 00000000..6817910e --- /dev/null +++ b/Tests/MappingAccasXsd/cata_Tuples.py @@ -0,0 +1,53 @@ +# Copyright (C) 2008-2018 EDF R&D +# +# This file is part of SALOME ADAO module +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +import os, re +import Accas +from Accas import * +monFichier=os.path.abspath(__file__) + +class Matrice: + def __init__(self,nbLigs=None,nbCols=None,methodeCalculTaille=None,formatSortie="ligne",valSup=None,valMin=None,structure=None,typElt='R',typEltInto=None, listeHeaders=None): + self.nbLigs=nbLigs + self.nbCols=nbCols + self.methodeCalculTaille=methodeCalculTaille + self.formatSortie=formatSortie + self.valSup=valSup + self.valMin=valMin + self.structure=structure + self.typElt=typElt + self.listeHeaders=listeHeaders + self.typEltInto=typEltInto + + +JdC = JDC_CATA ( + code = 'Essai', + fichierSource=monFichier, + ) +VERSION_CATALOGUE='V_0' +MODELE_NUM = PROC( nom = 'MODELE_NUM', + monTuple2 = SIMP(statut ="o",typ=Tuple(2),validators = VerifTypeTuple(('R','R'))), + monTuple3 = SIMP(statut ="o",typ=Tuple(3),validators = VerifTypeTuple(('R','I','TXM'))), + listeDeTuple2 = SIMP(statut ="o",typ=Tuple(2),validators = VerifTypeTuple(('R','R')),max='**'), + listeDeTuple3 = SIMP(statut ="o",typ=Tuple(3),validators = VerifTypeTuple(('R','I','TXM')),max='**'), + uneMatrice =SIMP( statut = "o", + typ = Matrice(nbLigs=3,nbCols=3, typElt='TXM', typEltInto=('U1','R1'), listeHeaders=None), + ), +) + -- 2.39.2