File tree 2 files changed +10
-4
lines changed
2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -20,4 +20,5 @@ docs/build
20
20
.pytest_cache
21
21
22
22
# PyCharm
23
- .idea /
23
+ .idea /
24
+ venv /
Original file line number Diff line number Diff line change 28
28
DDB_TABLE_NAME = "DDB_ENCRYPTION_CLIENT_TEST_TABLE_NAME"
29
29
30
30
31
- @pytest .fixture
32
- def cmk_arn ():
31
+ def cmk_arn_value ():
33
32
"""Retrieve the target CMK ARN from environment variable."""
34
33
arn = os .environ .get (AWS_KMS_KEY_ID , None )
35
34
if arn is None :
@@ -43,9 +42,15 @@ def cmk_arn():
43
42
raise ValueError ("KMS CMK ARN provided for integration tests must be a key not an alias" )
44
43
45
44
45
+ @pytest .fixture
46
+ def cmk_arn ():
47
+ """As of Pytest 4.0.0, fixtures cannot be called directly."""
48
+ return cmk_arn_value ()
49
+
50
+
46
51
@pytest .fixture
47
52
def aws_kms_cmp ():
48
- return AwsKmsCryptographicMaterialsProvider (key_id = cmk_arn ())
53
+ return AwsKmsCryptographicMaterialsProvider (key_id = cmk_arn_value ())
49
54
50
55
51
56
@pytest .fixture
You can’t perform that action at this time.
0 commit comments