tests: remove references to InMemoryCache (#85832)
gitea/passerelle/pipeline/head This commit looks good
Details
gitea/passerelle/pipeline/head This commit looks good
Details
This commit is contained in:
parent
a15a11ec4a
commit
0b4de669fd
|
@ -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()
|
||||
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue