Skip to content

Commit 30adcca

Browse files
committed
doc: app fixture example
1 parent 9c6e080 commit 30adcca

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

doc/client-applications.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,22 @@ pytest-iam will help you set up some of those scenarios in your tests.
1313
Setting up your test
1414
--------------------
1515

16+
Start by configuring your application so it uses pytest-iam as identity provider.
17+
This would probably be something in the fashion of:
18+
19+
.. code:: python
20+
:caption: conftest.py
21+
22+
@pytest.fixture
23+
def app(iam_server):
24+
return create_app(
25+
config={
26+
"SERVER_NAME": "myclient.test",
27+
"SECRET_KEY": str(uuid.uuid4()),
28+
"OAUTH_SERVER": iam_server.url,
29+
}
30+
)
31+
1632
Users & groups
1733
~~~~~~~~~~~~~~
1834

0 commit comments

Comments
 (0)