Skip to content

Commit

Permalink
test_ocrd_mets: tests in docker have OCRD_METS_CACHING=1 always, unset
Browse files Browse the repository at this point in the history
  • Loading branch information
kba committed Jul 16, 2024
1 parent 1634d3f commit 9bf0e7d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/model/test_ocrd_mets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9bf0e7d

Please sign in to comment.