Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -266,18 +266,6 @@ def test_erasure_privacy_request_with_async_polling(
# Requeue the polling task
requeue_polling_tasks.apply().get()

# Wait for the privacy request to be in processing (awaiting polling)
wait_for_privacy_request_status(
db=db,
privacy_request_id=privacy_request_id,
target_status=PrivacyRequestStatus.in_processing,
timeout_seconds=30,
poll_interval_seconds=2,
)

# Requeue the polling task
requeue_polling_tasks.apply().get()

# Wait for the privacy request to be complete
wait_for_privacy_request_status(
db=db,
Expand All @@ -292,25 +280,7 @@ def test_erasure_privacy_request_with_async_polling(
.filter(PrivacyRequest.id == privacy_request_id)
.first()
)
access_results = privacy_request.get_raw_access_results()
assert (
access_results["async_polling_example:user"][0]["retrieved_attachments"][0][
"file_name"
]
== "report.pdf"
)
assert (
access_results["async_polling_example:user"][0]["retrieved_attachments"][0][
"download_url"
]
is not None
)
assert (
access_results["async_polling_example:user"][0]["retrieved_attachments"][0][
"file_size"
]
== 17
)

assert privacy_request.get_raw_masking_counts() == {
"async_polling_example:user": 1
}
Loading