From d76503ff24ae161fe17a6e8eb7a256eda376e291 Mon Sep 17 00:00:00 2001 From: Eric Fayolle Date: Thu, 7 Jul 2022 12:05:04 +0200 Subject: [PATCH] Simplification du test BugPyxB --- TestPyxbBugEvenSimpler/cata_ko.xsd | 1 + .../cata_ko_test_driver_1.py | 12 ++++++++ .../cata_ko_test_driver_1.xml | 1 + .../cata_ko_test_driver_1_modif.py | 12 ++++++++ .../cata_ko_test_driver_1_modif.xml | 1 + TestPyxbBugEvenSimpler/cata_ok.xsd | 1 + .../cata_ok_test_driver_1.py | 12 ++++++++ .../cata_ok_test_driver_1.xml | 1 + .../cata_ok_test_driver_1_modif.py | 12 ++++++++ .../cata_ok_test_driver_1_modif.xml | 1 + TestPyxbBugEvenSimpler/cata_test_driver_1.xml | 5 ++++ .../cata_test_driver_1_modified.xml | 4 +++ TestPyxbBugEvenSimpler/ko/cata.xsd | 29 +++++++++++++++++++ TestPyxbBugEvenSimpler/ok/cata.xsd | 29 +++++++++++++++++++ 14 files changed, 121 insertions(+) create mode 120000 TestPyxbBugEvenSimpler/cata_ko.xsd create mode 100755 TestPyxbBugEvenSimpler/cata_ko_test_driver_1.py create mode 120000 TestPyxbBugEvenSimpler/cata_ko_test_driver_1.xml create mode 100755 TestPyxbBugEvenSimpler/cata_ko_test_driver_1_modif.py create mode 120000 TestPyxbBugEvenSimpler/cata_ko_test_driver_1_modif.xml create mode 120000 TestPyxbBugEvenSimpler/cata_ok.xsd create mode 100755 TestPyxbBugEvenSimpler/cata_ok_test_driver_1.py create mode 120000 TestPyxbBugEvenSimpler/cata_ok_test_driver_1.xml create mode 100755 TestPyxbBugEvenSimpler/cata_ok_test_driver_1_modif.py create mode 120000 TestPyxbBugEvenSimpler/cata_ok_test_driver_1_modif.xml create mode 100644 TestPyxbBugEvenSimpler/cata_test_driver_1.xml create mode 100644 TestPyxbBugEvenSimpler/cata_test_driver_1_modified.xml create mode 100644 TestPyxbBugEvenSimpler/ko/cata.xsd create mode 100644 TestPyxbBugEvenSimpler/ok/cata.xsd diff --git a/TestPyxbBugEvenSimpler/cata_ko.xsd b/TestPyxbBugEvenSimpler/cata_ko.xsd new file mode 120000 index 00000000..52f5fba9 --- /dev/null +++ b/TestPyxbBugEvenSimpler/cata_ko.xsd @@ -0,0 +1 @@ +ko/cata.xsd \ No newline at end of file diff --git a/TestPyxbBugEvenSimpler/cata_ko_test_driver_1.py b/TestPyxbBugEvenSimpler/cata_ko_test_driver_1.py new file mode 100755 index 00000000..be464b76 --- /dev/null +++ b/TestPyxbBugEvenSimpler/cata_ko_test_driver_1.py @@ -0,0 +1,12 @@ +#! /usr/bin/env python3 +# -*- coding:utf-8 -*- +import sys + +#print(sys.argv[:]) + +import cata_ko_driver as mdm +import pyxb + +o1 = mdm.CreateFromDocument(open('cata_ko_test_driver_1.xml').read()) +print(o1.toDOM().toprettyxml()) + diff --git a/TestPyxbBugEvenSimpler/cata_ko_test_driver_1.xml b/TestPyxbBugEvenSimpler/cata_ko_test_driver_1.xml new file mode 120000 index 00000000..b77f1a08 --- /dev/null +++ b/TestPyxbBugEvenSimpler/cata_ko_test_driver_1.xml @@ -0,0 +1 @@ +cata_test_driver_1.xml \ No newline at end of file diff --git a/TestPyxbBugEvenSimpler/cata_ko_test_driver_1_modif.py b/TestPyxbBugEvenSimpler/cata_ko_test_driver_1_modif.py new file mode 100755 index 00000000..bc01ca86 --- /dev/null +++ b/TestPyxbBugEvenSimpler/cata_ko_test_driver_1_modif.py @@ -0,0 +1,12 @@ +#! /usr/bin/env python3 +# -*- coding:utf-8 -*- +import sys + +#print(sys.argv[:]) + +import cata_ko_driver as mdm +import pyxb + +o1 = mdm.CreateFromDocument(open('cata_ko_test_driver_1_modif.xml').read()) +print(o1.toDOM().toprettyxml()) + diff --git a/TestPyxbBugEvenSimpler/cata_ko_test_driver_1_modif.xml b/TestPyxbBugEvenSimpler/cata_ko_test_driver_1_modif.xml new file mode 120000 index 00000000..9eb25597 --- /dev/null +++ b/TestPyxbBugEvenSimpler/cata_ko_test_driver_1_modif.xml @@ -0,0 +1 @@ +cata_test_driver_1_modified.xml \ No newline at end of file diff --git a/TestPyxbBugEvenSimpler/cata_ok.xsd b/TestPyxbBugEvenSimpler/cata_ok.xsd new file mode 120000 index 00000000..e9a1d8ed --- /dev/null +++ b/TestPyxbBugEvenSimpler/cata_ok.xsd @@ -0,0 +1 @@ +ok/cata.xsd \ No newline at end of file diff --git a/TestPyxbBugEvenSimpler/cata_ok_test_driver_1.py b/TestPyxbBugEvenSimpler/cata_ok_test_driver_1.py new file mode 100755 index 00000000..60f6ccef --- /dev/null +++ b/TestPyxbBugEvenSimpler/cata_ok_test_driver_1.py @@ -0,0 +1,12 @@ +#! /usr/bin/env python3 +# -*- coding:utf-8 -*- +import sys + +#print(sys.argv[:]) + +import cata_ok_driver as mdm +import pyxb + +o1 = mdm.CreateFromDocument(open('cata_ok_test_driver_1.xml').read()) +print(o1.toDOM().toprettyxml()) + diff --git a/TestPyxbBugEvenSimpler/cata_ok_test_driver_1.xml b/TestPyxbBugEvenSimpler/cata_ok_test_driver_1.xml new file mode 120000 index 00000000..b77f1a08 --- /dev/null +++ b/TestPyxbBugEvenSimpler/cata_ok_test_driver_1.xml @@ -0,0 +1 @@ +cata_test_driver_1.xml \ No newline at end of file diff --git a/TestPyxbBugEvenSimpler/cata_ok_test_driver_1_modif.py b/TestPyxbBugEvenSimpler/cata_ok_test_driver_1_modif.py new file mode 100755 index 00000000..1498a1a8 --- /dev/null +++ b/TestPyxbBugEvenSimpler/cata_ok_test_driver_1_modif.py @@ -0,0 +1,12 @@ +#! /usr/bin/env python3 +# -*- coding:utf-8 -*- +import sys + +#print(sys.argv[:]) + +import cata_ok_driver as mdm +import pyxb + +o1 = mdm.CreateFromDocument(open('cata_ok_test_driver_1_modif.xml').read()) +print(o1.toDOM().toprettyxml()) + diff --git a/TestPyxbBugEvenSimpler/cata_ok_test_driver_1_modif.xml b/TestPyxbBugEvenSimpler/cata_ok_test_driver_1_modif.xml new file mode 120000 index 00000000..9eb25597 --- /dev/null +++ b/TestPyxbBugEvenSimpler/cata_ok_test_driver_1_modif.xml @@ -0,0 +1 @@ +cata_test_driver_1_modified.xml \ No newline at end of file diff --git a/TestPyxbBugEvenSimpler/cata_test_driver_1.xml b/TestPyxbBugEvenSimpler/cata_test_driver_1.xml new file mode 100644 index 00000000..602b4f5f --- /dev/null +++ b/TestPyxbBugEvenSimpler/cata_test_driver_1.xml @@ -0,0 +1,5 @@ + + + 2 + 3.141 + diff --git a/TestPyxbBugEvenSimpler/cata_test_driver_1_modified.xml b/TestPyxbBugEvenSimpler/cata_test_driver_1_modified.xml new file mode 100644 index 00000000..a9b710bc --- /dev/null +++ b/TestPyxbBugEvenSimpler/cata_test_driver_1_modified.xml @@ -0,0 +1,4 @@ + + + 3.141 + diff --git a/TestPyxbBugEvenSimpler/ko/cata.xsd b/TestPyxbBugEvenSimpler/ko/cata.xsd new file mode 100644 index 00000000..22fbee37 --- /dev/null +++ b/TestPyxbBugEvenSimpler/ko/cata.xsd @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/TestPyxbBugEvenSimpler/ok/cata.xsd b/TestPyxbBugEvenSimpler/ok/cata.xsd new file mode 100644 index 00000000..87b3126a --- /dev/null +++ b/TestPyxbBugEvenSimpler/ok/cata.xsd @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- 2.39.2