avoid blocking pop-up
This commit is contained in:
parent
7f09bbeb08
commit
c11d38b2ec
|
@ -1,3 +1,5 @@
|
||||||
|
import sys
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import vtk
|
import vtk
|
||||||
|
@ -47,6 +49,7 @@ class TestGrid:
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize('cmap',[Colormap.from_predefined('stress'),'viridis'])
|
@pytest.mark.parametrize('cmap',[Colormap.from_predefined('stress'),'viridis'])
|
||||||
|
@pytest.mark.skipif(sys.platform == 'win32', reason='DISPLAY has no effect on windows')
|
||||||
def test_show(sef,default,cmap,monkeypatch):
|
def test_show(sef,default,cmap,monkeypatch):
|
||||||
monkeypatch.delenv('DISPLAY',raising=False)
|
monkeypatch.delenv('DISPLAY',raising=False)
|
||||||
default.show(cmap)
|
default.show(cmap)
|
||||||
|
|
|
@ -2,6 +2,7 @@ import os
|
||||||
import filecmp
|
import filecmp
|
||||||
import time
|
import time
|
||||||
import string
|
import string
|
||||||
|
import sys
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
@ -31,6 +32,7 @@ class TestVTK:
|
||||||
print('patched damask.util.execution_stamp')
|
print('patched damask.util.execution_stamp')
|
||||||
|
|
||||||
@pytest.mark.parametrize('cmap',[Colormap.from_predefined('cividis'),'strain'])
|
@pytest.mark.parametrize('cmap',[Colormap.from_predefined('cividis'),'strain'])
|
||||||
|
@pytest.mark.skipif(sys.platform == 'win32', reason='DISPLAY has no effect on windows')
|
||||||
def test_show(sef,default,cmap,monkeypatch):
|
def test_show(sef,default,cmap,monkeypatch):
|
||||||
monkeypatch.delenv('DISPLAY',raising=False)
|
monkeypatch.delenv('DISPLAY',raising=False)
|
||||||
default.show(colormap=cmap)
|
default.show(colormap=cmap)
|
||||||
|
|
Loading…
Reference in New Issue