From b04d0ce6906b780522ec201fb3e4e8e2d405046e Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Tue, 22 Mar 2022 12:38:14 +0100 Subject: [PATCH 02/11] wip: add test of homepage/get_endpoint_infos --- tests/test_soap.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/test_soap.py b/tests/test_soap.py index 6fb906cf..28fe1c9f 100644 --- a/tests/test_soap.py +++ b/tests/test_soap.py @@ -20,6 +20,8 @@ import utils from passerelle.apps.soap.models import SOAPConnector +pytestmark = pytest.mark.django_db + class SOAP11: VERSION = '1.1' @@ -228,6 +230,19 @@ def soap(request): yield p +class TestManage: + @pytest.fixture + def app(self, app, admin_user): + from test_manager import login + + login(app) + return app + + def test_homepage(self, app, connector, soap): + response = app.get(f'/soap/{connector.slug}/') + assert 'Method sayHello' in response + + @pytest.fixture def connector(db, soap): return utils.setup_access_rights( -- 2.35.1