Skip to content

Commit

Permalink
Rewrite retention policy tests
Browse files Browse the repository at this point in the history
closes pulp#2885
  • Loading branch information
lubosmj authored and dralley committed Apr 4, 2023
1 parent 9563d5f commit 5e59368
Show file tree
Hide file tree
Showing 3 changed files with 179 additions and 234 deletions.
1 change: 1 addition & 0 deletions CHANGES/2885.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Refactored retention policy tests to follow pytest standards.
6 changes: 5 additions & 1 deletion pulp_rpm/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ def _init_and_sync(
policy="immediate",
sync_policy="additive",
skip_types=None,
optimize=True,
return_task=False,
):
if repository is None:
Expand All @@ -126,7 +127,10 @@ def _init_and_sync(
remote = rpm_rpmremote_factory(url=url, policy=policy)

repository_sync_data = RpmRepositorySyncURL(
remote=remote.pulp_href, sync_policy=sync_policy, skip_types=skip_types
remote=remote.pulp_href,
sync_policy=sync_policy,
skip_types=skip_types,
optimize=optimize,
)
sync_response = rpm_repository_api.sync(repository.pulp_href, repository_sync_data)
task = monitor_task(sync_response.task)
Expand Down
Loading

0 comments on commit 5e59368

Please sign in to comment.