Add some tests for XMLMaterialProfile

This commit is contained in:
Jaime van Kessel 2019-09-06 17:19:23 +02:00
parent 608ca3e92a
commit 94b6f7864f
No known key found for this signature in database
GPG key ID: 3710727397403C91
2 changed files with 69 additions and 1 deletions

View file

@ -19,7 +19,10 @@ from UM.ConfigurationErrorMessage import ConfigurationErrorMessage
from cura.CuraApplication import CuraApplication
from cura.Machines.VariantType import VariantType
from .XmlMaterialValidator import XmlMaterialValidator
try:
from .XmlMaterialValidator import XmlMaterialValidator
except (ImportError, SystemError):
import XmlMaterialValidator # type: ignore # This fixes the tests not being able to import.
## Handles serializing and deserializing material containers from an XML file