toulouse-maelis: allow using site_service with other test fixture (#73808)

This commit is contained in:
Nicolas Roche 2023-01-20 21:11:59 +01:00 committed by Gitea
parent 70e03e7721
commit 3d48906aea
1 changed files with 6 additions and 4 deletions

View File

@ -100,13 +100,15 @@ def invoice_service(requests_mock):
@pytest.fixture()
def site_service():
with ResponsesSoap(
def site_service(requests_mock):
responses_soap = ResponsesSoap(
wsdl_url='https://example.org/SiteService?wsdl',
wsdl_content=get_xml_file('SiteService.wsdl'),
settings=Settings(strict=False, xsd_ignore_sequence_order=True),
)() as mock:
yield mock
requests_mock=requests_mock,
)
with responses_soap() as soap_mock:
yield soap_mock
@pytest.fixture(scope='module')