0002-wip-add-test-of-homepage-get_endpoint_infos.patch
tests/test_soap.py | ||
---|---|---|
20 | 20 | |
21 | 21 |
from passerelle.apps.soap.models import SOAPConnector |
22 | 22 | |
23 |
pytestmark = pytest.mark.django_db |
|
24 | ||
23 | 25 | |
24 | 26 |
class SOAP11: |
25 | 27 |
VERSION = '1.1' |
... | ... | |
228 | 230 |
yield p |
229 | 231 | |
230 | 232 | |
233 |
class TestManage: |
|
234 |
@pytest.fixture |
|
235 |
def app(self, app, admin_user): |
|
236 |
from test_manager import login |
|
237 | ||
238 |
login(app) |
|
239 |
return app |
|
240 | ||
241 |
def test_homepage(self, app, connector, soap): |
|
242 |
response = app.get(f'/soap/{connector.slug}/') |
|
243 |
assert 'Method sayHello' in response |
|
244 | ||
245 | ||
231 | 246 |
@pytest.fixture |
232 | 247 |
def connector(db, soap): |
233 | 248 |
return utils.setup_access_rights( |
234 |
- |