Skip to content

Commit 8e0d640

Browse files
authored
fix: Fix retention policy integration test (#867)
1 parent 94dcbcd commit 8e0d640

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

setup.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,11 @@ def main():
6868
'bottle',
6969
'jsonpatch>1.14',
7070
'sqlalchemy<1.4.0',
71-
'pytest',
72-
'pytest-timeout',
73-
'pytest-cov',
74-
'pytest-lazy-fixture',
71+
# pytest 8.0.0 is not compatible, so we need to use the latest version of pytest 7.x
72+
'pytest<8.0.0',
73+
'pytest-timeout<3.0.0',
74+
'pytest-cov<5.0.0',
75+
'pytest-lazy-fixture<1.0.0',
7576
'pytz',
7677
'urllib3<2'
7778
]

test/integration_new/context_managers/box_retention_policy.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
class BoxRetentionPolicy:
88

9-
DEFAULT_RETENTION_POLICY_NAME = "modifiable_retention_policy_for_integration_tests"
9+
DEFAULT_RETENTION_POLICY_NAME = "modifiable_retention_policy_for_integration_tests_extendable_by_owner"
1010

1111
def __init__(
1212
self,
@@ -26,6 +26,7 @@ def __init__(
2626
policy_name=name,
2727
disposition_action=disposition_action,
2828
retention_length=retention_length,
29+
can_owner_extend_retention=True,
2930
retention_type='modifiable'
3031
)
3132

0 commit comments

Comments
 (0)