Skip to content

Commit

Permalink
chore: linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
brobro10000 committed Oct 24, 2024
1 parent 7497703 commit ee029f7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions enterprise/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2593,7 +2593,7 @@ def determine_content_type(self):
Determines the content_type for a given content_key by validating the return value
from `content_metadata_for_content_key`. First determines if the configured content_key
matches the returned key, then checks if it matches any of the returned course runs.
Returns either COURSE, COURSE_RUN, or None (if neither can be determined).
"""
if not (content_metadata := self.content_metadata_for_content_key):
Expand Down Expand Up @@ -2632,10 +2632,10 @@ def clean(self):
args=[existing_record.uuid],
)
message = _(
f'A default enrollment intention with this enterprise customer and '
f'content key already exists, but is soft-deleted. Please restore '
f'it <a href="{existing_record_admin_url}">here</a>.',
)
'A default enrollment intention with this enterprise customer and '
'content key already exists, but is soft-deleted. Please restore '
'it <a href="{existing_record_admin_url}">here</a>.',
).format(existing_record_admin_url=existing_record_admin_url)
raise ValidationError({
'content_key': mark_safe(message)
})
Expand Down
2 changes: 1 addition & 1 deletion tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
from freezegun.api import freeze_time
from opaque_keys.edx.keys import CourseKey
from pytest import mark, raises
from requests.exceptions import HTTPError
from slumber.exceptions import HttpClientError
from testfixtures import LogCapture
from requests.exceptions import HTTPError

from django.conf import settings
from django.core.exceptions import ValidationError
Expand Down

0 comments on commit ee029f7

Please sign in to comment.