File tree 1 file changed +13
-5
lines changed
1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -4,14 +4,22 @@ Configuration
4
4
pytest-iam can be configured by redefining or expanding the :meth: `~pytest_iam.iam_configuration ` fixture.
5
5
This returns a :const: `dict ` containing the canaille :doc: `canaille:configuration `.
6
6
7
- .. code :: python
7
+ .. code-block :: python
8
8
9
9
@pytest.fixture (scope = " session" )
10
10
def iam_configuration (iam_configuration ):
11
- iam_configuration[" ACL" ][" DEFAULT" ][" WRITE" ].append(" groups" )
11
+ iam_configuration[" CANAILLE " ][ " ACL" ][" DEFAULT" ][" WRITE" ].append(" groups" )
12
12
return iam_configuration
13
13
14
- The configuration will also be read:
14
+ The configuration will also be read from a ` .pytest-iam.env ` file if existing.
15
15
16
- - from a `.pytest-iam.env ` file if existing;
17
- - from any environment var with a valid Canaille setting name prefixed by `PYTEST_IAM_ `.
16
+ .. code-block :: bash
17
+ :caption: .pytest-iam.env
18
+
19
+ CANAILLE_OIDC__REQUIRE_NONCE=false
20
+
21
+ It can also be read from any environment var with a valid Canaille setting name prefixed by `PYTEST_IAM_ `.
22
+
23
+ .. code-block :: bash
24
+
25
+ env PYTEST_IAM_CANAILLE_OIDC__REQUIRE_NONCE=false pytest
You can’t perform that action at this time.
0 commit comments