This commit is contained in:
Jonas Linter
2025-10-10 10:45:47 +02:00
parent 5b91608577
commit 4ac5a148b6
16 changed files with 42 additions and 450 deletions

View File

@@ -458,7 +458,7 @@ class TestEdgeCases:
config = SerializerConfig(pretty_print=True)
serializer = XmlSerializer(config=config)
xml_output = serializer.render(
serializer.render(
response, ns_map={None: "http://www.opentravel.org/OTA/2003/05"}
)

View File

@@ -11,8 +11,7 @@ def extract_relevant_sections(xml_string):
# Remove version attribute value, keep only presence
# Use the same XmlParser as AlpineBitsServer
parser = XmlParser()
obj = parser.from_string(xml_string, OtaPingRs)
return obj
return parser.from_string(xml_string, OtaPingRs)
@pytest.mark.asyncio