binary representation depends on vtk lib version
This commit is contained in:
parent
8a9a768a77
commit
f4d13bc810
|
@ -1,6 +1,3 @@
|
||||||
import filecmp
|
|
||||||
import time
|
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
||||||
|
@ -72,9 +69,8 @@ class TestVTK:
|
||||||
if update:
|
if update:
|
||||||
polyData.write(reference_dir/'polyData')
|
polyData.write(reference_dir/'polyData')
|
||||||
else:
|
else:
|
||||||
polyData.write(tmp_path/'polyData')
|
reference = VTK.from_file(reference_dir/'polyData.vtp')
|
||||||
time.sleep(.5)
|
assert polyData.__repr__() == reference.__repr__()
|
||||||
assert filecmp.cmp(tmp_path/'polyData.vtp',reference_dir/'polyData.vtp')
|
|
||||||
|
|
||||||
def test_compare_reference_rectilinearGrid(self,update,reference_dir,tmp_path):
|
def test_compare_reference_rectilinearGrid(self,update,reference_dir,tmp_path):
|
||||||
grid = np.array([5,6,7],int)
|
grid = np.array([5,6,7],int)
|
||||||
|
@ -87,7 +83,6 @@ class TestVTK:
|
||||||
if update:
|
if update:
|
||||||
rectilinearGrid.write(reference_dir/'rectilinearGrid')
|
rectilinearGrid.write(reference_dir/'rectilinearGrid')
|
||||||
else:
|
else:
|
||||||
rectilinearGrid.write(tmp_path/'rectilinearGrid')
|
reference = VTK.from_file(reference_dir/'rectilinearGrid.vtr')
|
||||||
time.sleep(.5)
|
assert rectilinearGrid.__repr__() == reference.__repr__()
|
||||||
assert filecmp.cmp(tmp_path/'rectilinearGrid.vtr',reference_dir/'rectilinearGrid.vtr')
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue