tests: remove references to InMemoryCache (#85832)
gitea/passerelle/pipeline/head This commit looks good Details

This commit is contained in:
Benjamin Dauvergne 2024-02-01 22:43:38 +01:00
parent a15a11ec4a
commit 0b4de669fd
2 changed files with 0 additions and 15 deletions

View File

@ -188,17 +188,6 @@ CipherString = ALL'''
@pytest.fixture(autouse=True)
def clear_cache():
from zeep.cache import InMemoryCache
# prevent silent change in zeep private interface
assert InMemoryCache._cache == {}
InMemoryCache._cache = {}
try:
yield
finally:
InMemoryCache._cache = {}
cache.clear()

View File

@ -278,10 +278,6 @@ def django_db_setup(django_db_setup, django_db_blocker):
invoice_mock.add_soap_response('readRegieList', get_xml_file('R_read_regie_list.xml'))
con.update_invoice_referentials()
# reset change in zeep private interface to bypass clear_cache fixture
from zeep.cache import InMemoryCache
InMemoryCache._cache = {}
with django_db_blocker.block():
yield
finally: