Skip to content

Commit

Permalink
chore: fixed test
Browse files Browse the repository at this point in the history
*  fixing a test which was replying on implicit behavior in the choices
   between certificate display behaviors
* lint error
  • Loading branch information
deborahgu committed Sep 30, 2024
1 parent c806421 commit b6fd06a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion lms/djangoapps/learner_home/test_serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,9 +522,12 @@ def test_with_data(self):
# ... with a certificate
input_context = self.create_test_context(input_data.course)

# ... and some data preemptively gathered
# ... and some data preemptively gathered, including a certificate display behavior
available_date = random_date()
input_data.course.certificate_available_date = available_date
input_data.course.certificates_display_behavior = (
CertificatesDisplayBehaviors.END_WITH_DATE
)
cert_url = input_context["cert_statuses"][input_data.course.id][
"cert_web_view_url"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import pytest
import ddt
from pytz import UTC
from unittest.mock import patch # lint-amnesty, pylint: disable=wrong-import-order

from django.conf import settings
from xmodule.modulestore import ModuleStoreEnum
Expand Down

0 comments on commit b6fd06a

Please sign in to comment.