From edcd4f9cccd5fffba85733dd806412a6a84e05bd Mon Sep 17 00:00:00 2001 From: Tomas Susanka Date: Mon, 30 Dec 2019 11:28:45 +0000 Subject: [PATCH] tests/ui: copy actual dir as recorded if the test passed because it is the same thing then --- tests/ui_tests/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/ui_tests/__init__.py b/tests/ui_tests/__init__.py index 28f428dc8..eaef6c1ba 100644 --- a/tests/ui_tests/__init__.py +++ b/tests/ui_tests/__init__.py @@ -2,6 +2,7 @@ import hashlib import re import shutil from contextlib import contextmanager +from distutils.dir_util import copy_tree from pathlib import Path import pytest @@ -80,6 +81,9 @@ def _process_tested(fixture_test_path, test_name): ) ) else: + copy_tree( + str(fixture_test_path / "actual"), str(fixture_test_path / "recorded") + ) if (fixture_test_path / "diff.html").exists(): (fixture_test_path / "diff.html").unlink()