Salome HOME
updated copyright message
[modules/yacs.git] / src / py2yacs / Test / testDeco.py
index 588c7ab13a9a0373b08508ffd64ac9be7dd8e688..ebaf7eca0377e233046b208d6561de2e81a78826 100755 (executable)
@@ -1,5 +1,5 @@
 #!/usr/bin/env python3
-# Copyright (C) 2006-2021  CEA/DEN, EDF R&D
+# Copyright (C) 2006-2023  CEA, EDF
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -86,11 +86,11 @@ class TestDeco(unittest.TestCase):
       Foreach initialized by value.
       """
       import testforeach
-      expected_1, expected_2 = testforeach.mainbloc()
+      expected_1, expected_2 = testforeach.mainblock()
       yacs_schema_file = os.path.join(dir_test, "schema_t2.xml")
       yacs_build_command = "yacsbuild.py"
       test_script = "testforeach.py"
-      main_function_name = "mainbloc"
+      main_function_name = "mainblock"
       subprocess.run([yacs_build_command,
                       test_script, main_function_name, yacs_schema_file])
       l = loader.YACSLoader()
@@ -149,7 +149,7 @@ def f_def(x,y):
   d = x - y
   return d
 
-@yacsdecorator.bloc
+@yacsdecorator.block
 def main():
   s1 = f_c1(3,4)
   p1 = f_c2(5,6)