Commit 56cf2427 authored by T.J. Corona's avatar T.J. Corona

Disable iterateMeshPy and fix importExportPy for Shiboken builds.

parent d03534ce
......@@ -3,10 +3,13 @@
# tests that require SMTK_DATA_DIR
set(smtkMeshPythonDataTests
extractTessellation
iterateMesh
simple
)
if (SMTK_USE_PYBIND11)
list(APPEND smtkMeshPythonDataTests iterateMesh)
endif()
#only run these tests if we have a valid data directory and we have a moab
#built with hdf5
if (SMTK_DATA_DIR
......
......@@ -55,7 +55,10 @@ class TestExportImport(smtk.testing.TestCase):
ftmp = os.path.join(tempfile.mkdtemp(), 'test.json')
# Export to ftmp
exp = sess.op('export smtk model')
SetVectorValue(exp.findFile('filename', int(smtk.attribute.SearchStyle.ACTIVE_CHILDREN)), [ftmp,])
if smtk.wrappingProtocol() == 'pybind11':
SetVectorValue(exp.findFile('filename', int(smtk.attribute.SearchStyle.ACTIVE_CHILDREN)), [ftmp,])
else:
SetVectorValue(exp.findFile('filename', smtk.attribute.SearchStyle.ACTIVE_CHILDREN), [ftmp,])
SetVectorValue(exp.specification().associations(), models)
result = exp.operate()
PrintResultLog(result)
......@@ -66,7 +69,10 @@ class TestExportImport(smtk.testing.TestCase):
SetActiveSession(se2)
# Import from ftmp
imp = se2.op('import smtk model')
SetVectorValue(imp.findFile('filename', int(smtk.attribute.ACTIVE_CHILDREN)), [ftmp,])
if smtk.wrappingProtocol() == 'pybind11':
SetVectorValue(imp.findFile('filename', int(smtk.attribute.ACTIVE_CHILDREN)), [ftmp,])
else:
SetVectorValue(imp.findFile('filename', smtk.attribute.ACTIVE_CHILDREN), [ftmp,])
result = imp.operate()
PrintResultLog(result)
self.assertEqual(result.findInt('outcome').value(0), smtk.model.OPERATION_SUCCEEDED, 'Could not import model')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment