Fixed format mismatch
This commit is contained in:
@ -38,7 +38,7 @@ def exportCAF(assy: AssemblyProtocol, path: str) -> bool:
|
||||
ret = XmlDrivers_DocumentRetrievalDriver()
|
||||
|
||||
app.DefineFormat(
|
||||
TCollection_AsciiString("XmlXCAF"),
|
||||
TCollection_AsciiString("XmlOcaf"),
|
||||
TCollection_AsciiString("Xml XCAF Document"),
|
||||
TCollection_AsciiString(path.split(".")[-1]),
|
||||
ret,
|
||||
|
@ -87,7 +87,7 @@ def test_save(simple_assy):
|
||||
assert os.path.exists("simple.stp")
|
||||
|
||||
simple_assy.save('simple.caf','XML')
|
||||
assert os.path.exists("simple.caf.xml")
|
||||
assert os.path.exists("simple.caf")
|
||||
|
||||
with pytest.raises(ValueError):
|
||||
simple_assy.save('simple.dxf')
|
||||
|
Reference in New Issue
Block a user