From 01d84c1477b93e3de7a52c674b67027d4a027e9d Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Sun, 15 Nov 2020 11:49:52 +0100 Subject: [PATCH] testing also functions with graphical output --- python/tests/conftest.py | 2 +- python/tests/test_Colormap.py | 2 +- python/tests/test_Geom.py | 2 +- python/tests/test_VTK.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/python/tests/conftest.py b/python/tests/conftest.py index 9c58eedd9..5f5de52ba 100644 --- a/python/tests/conftest.py +++ b/python/tests/conftest.py @@ -26,7 +26,7 @@ def patch_datetime_now(monkeypatch): monkeypatch.setattr(datetime, 'datetime', mydatetime) @pytest.fixture -def execution_stamp(monkeypatch): +def patch_execution_stamp(monkeypatch): """Set damask.util.execution_stamp for reproducible tests results.""" def execution_stamp(class_name,function_name=None): _function_name = '' if function_name is None else f'.{function_name}' diff --git a/python/tests/test_Colormap.py b/python/tests/test_Colormap.py index 71d896016..9b317b451 100644 --- a/python/tests/test_Colormap.py +++ b/python/tests/test_Colormap.py @@ -17,7 +17,7 @@ def reference_dir(reference_dir_base): class TestColormap: @pytest.fixture(autouse=True) - def _execution_stamp(self, execution_stamp): + def _patch_execution_stamp(self, patch_execution_stamp): print('patched damask.util.execution_stamp') def test_conversion(self): diff --git a/python/tests/test_Geom.py b/python/tests/test_Geom.py index 09c43fe7e..5fd4d3b1c 100644 --- a/python/tests/test_Geom.py +++ b/python/tests/test_Geom.py @@ -34,7 +34,7 @@ def reference_dir(reference_dir_base): class TestGeom: @pytest.fixture(autouse=True) - def _execution_stamp(self, execution_stamp): + def _patch_execution_stamp(self, patch_execution_stamp): print('patched damask.util.execution_stamp') def test_diff_equal(self,default): diff --git a/python/tests/test_VTK.py b/python/tests/test_VTK.py index 3b14981ae..53fbaa2f4 100644 --- a/python/tests/test_VTK.py +++ b/python/tests/test_VTK.py @@ -23,7 +23,7 @@ def default(): class TestVTK: @pytest.fixture(autouse=True) - def _execution_stamp(self, execution_stamp): + def _patch_execution_stamp(self, patch_execution_stamp): print('patched damask.util.execution_stamp') def test_rectilinearGrid(self,tmp_path):