Skip to content
Merged
Show file tree
Hide file tree
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 @@ -80,7 +80,7 @@ def handle(self, *args, **options):
# iterate each certificate and append each certificate as a row
for certificate in course_generated_certificates:
certificate_web_link_url = f"{lms_root_url}/certificates/{certificate.verify_uuid}"
certificate_download_pdf_link = certificate_download_url + certificate.verify_uuid
certificate_download_pdf_link = f"{certificate_download_url}/{certificate.verify_uuid}"

rows.append(
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ def setUp(self):
super().setUp()
self.valid_course_id = "course-v1:NAU+Demo+DemoCourse"
self.valid_course_key = CourseKey.from_string(self.valid_course_id)
self.valid_download_url = "https://example.com/certificates/"
self.valid_download_url = "https://example.com/certificates"
self.lms_root_url = "https://lms.example.com"

# Use the renamed import
Expand Down Expand Up @@ -628,7 +628,7 @@ def test_csv_content_format(self, mock_generated_certificate, mock_upload_csv,
self.assertEqual(data_row[6], expected_web_link)

# Verify download link format
expected_download_link = f"{self.valid_download_url}test-uuid-123"
expected_download_link = f"{self.valid_download_url}/test-uuid-123"
self.assertEqual(data_row[7], expected_download_link)

@patch_use_read_replica
Expand Down