fix tests

This commit is contained in:
Christopher Lackner 2019-07-26 16:58:55 +02:00
parent 67189f15f9
commit da82b72df6
3 changed files with 4 additions and 4 deletions

View File

@ -2,6 +2,6 @@
import logging
logger = logging.getLogger(__name__)
logger.warn("This module is deprecated and just a wrapper for netgen.occ, import netgen.occ instead")
logger.warning("This module is deprecated and just a wrapper for netgen.occ, import netgen.occ instead")
from .occ import *

View File

@ -48,11 +48,11 @@ def test_pickle_stl():
def test_pickle_occ():
try:
import netgen.NgOCC as occ
import netgen.occ as occ
except:
import pytest
pytest.skip("can't import occ")
geo = occ.LoadOCCGeometry("../../tutorials/frame.step")
geo = OCCGeometry("../../tutorials/frame.step")
geo_dump = pickle.dumps(geo)
geo2 = pickle.loads(geo_dump)
vd1 = geo._visualizationData()

View File

@ -28,7 +28,7 @@ def CreateGeo():
def test_BBNDsave():
mesh = CreateGeo().GenerateMesh(maxh=0.4,perfstepsend = meshing.MeshingStep.MESHSURFACE)
for i in range(2):
mesh.GenerateVolumeMesh(mp = MeshingParameters(only3D_domain=i+1,maxh=0.4))
mesh.GenerateVolumeMesh(only3D_domain=i+1,maxh=0.4)
mesh.SetGeometry(None)
mesh.Save("test.vol")
mesh2 = meshing.Mesh()