From 9bf0e7da84e368b01347230bcad834faacb4fbc3 Mon Sep 17 00:00:00 2001 From: kba Date: Tue, 16 Jul 2024 17:24:56 +0200 Subject: [PATCH] test_ocrd_mets: tests in docker have OCRD_METS_CACHING=1 always, unset --- tests/model/test_ocrd_mets.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/model/test_ocrd_mets.py b/tests/model/test_ocrd_mets.py index 5062fe2270..739db7625a 100644 --- a/tests/model/test_ocrd_mets.py +++ b/tests/model/test_ocrd_mets.py @@ -395,8 +395,9 @@ def temp_env_var(k, v): environ.pop(k, None) def test_envvar(): - assert OcrdMets(filename=assets.url_of('SBB0000F29300010000/data/mets.xml'), cache_flag=True)._cache_flag - assert not OcrdMets(filename=assets.url_of('SBB0000F29300010000/data/mets.xml'), cache_flag=False)._cache_flag + with temp_env_var('OCRD_METS_CACHING', None): + assert OcrdMets(filename=assets.url_of('SBB0000F29300010000/data/mets.xml'), cache_flag=True)._cache_flag + assert not OcrdMets(filename=assets.url_of('SBB0000F29300010000/data/mets.xml'), cache_flag=False)._cache_flag with temp_env_var('OCRD_METS_CACHING', 'true'): assert OcrdMets(filename=assets.url_of('SBB0000F29300010000/data/mets.xml'), cache_flag=True)._cache_flag assert OcrdMets(filename=assets.url_of('SBB0000F29300010000/data/mets.xml'), cache_flag=False)._cache_flag