From 42da8aba8344ad280a8757f3ba6b17e4f39396cc Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Wed, 13 Sep 2023 12:47:33 +0200 Subject: [PATCH] Correct xsi:schemaLocation --- src/ifctester/ifctester/ids.py | 2 +- src/ifctester/test/test_ids.py | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/ifctester/ifctester/ids.py b/src/ifctester/ifctester/ids.py index 21bf6670b0..c3ebfed16c 100644 --- a/src/ifctester/ifctester/ids.py +++ b/src/ifctester/ifctester/ids.py @@ -81,7 +81,7 @@ class Ids: "@xmlns": "http://standards.buildingsmart.org/IDS", "@xmlns:xs": "http://www.w3.org/2001/XMLSchema", "@xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance", - "@xsi:schemaLocation": "http://standards.buildingsmart.org/IDS/0.9.6/ids.xsd", + "@xsi:schemaLocation": "http://standards.buildingsmart.org/IDS http://standards.buildingsmart.org/IDS/0.9.6/ids.xsd", "info": self.info, "specifications": {"specification": []}, } diff --git a/src/ifctester/test/test_ids.py b/src/ifctester/test/test_ids.py index 98217c5a7a..10f2cb2beb 100644 --- a/src/ifctester/test/test_ids.py +++ b/src/ifctester/test/test_ids.py @@ -48,11 +48,12 @@ class TestIds: def test_create_an_ids_with_minimal_information(self): specs = ids.Ids() + print('AAA', specs.asdict()) assert specs.asdict() == { "@xmlns": "http://standards.buildingsmart.org/IDS", "@xmlns:xs": "http://www.w3.org/2001/XMLSchema", "@xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance", - "@xsi:schemaLocation": "http://standards.buildingsmart.org/IDS/0.9.6/ids.xsd", + "@xsi:schemaLocation": "http://standards.buildingsmart.org/IDS http://standards.buildingsmart.org/IDS/0.9.6/ids.xsd", "info": {"title": "Untitled"}, "specifications": {"specification": []}, } @@ -72,7 +73,7 @@ class TestIds: "@xmlns": "http://standards.buildingsmart.org/IDS", "@xmlns:xs": "http://www.w3.org/2001/XMLSchema", "@xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance", - "@xsi:schemaLocation": "http://standards.buildingsmart.org/IDS/0.9.6/ids.xsd", + "@xsi:schemaLocation": "http://standards.buildingsmart.org/IDS http://standards.buildingsmart.org/IDS/0.9.6/ids.xsd", "info": { "title": "title", "copyright": "copyright", @@ -92,7 +93,7 @@ class TestIds: "@xmlns": "http://standards.buildingsmart.org/IDS", "@xmlns:xs": "http://www.w3.org/2001/XMLSchema", "@xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance", - "@xsi:schemaLocation": "http://standards.buildingsmart.org/IDS/0.9.6/ids.xsd", + "@xsi:schemaLocation": "http://standards.buildingsmart.org/IDS http://standards.buildingsmart.org/IDS/0.9.6/ids.xsd", "info": {"title": "Untitled"}, "specifications": {"specification": []}, }