Skip to content

Commit

Permalink
chore: quality
Browse files Browse the repository at this point in the history
  • Loading branch information
zawan-ila committed Feb 24, 2025
1 parent e1e742e commit b8f2678
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def create_pathway(self, status=PathwayStatus.Unpublished):
program = ProgramFactory(partner=pathway.partner)
pathway.programs.add(program)
return pathway

def test_pathway_list(self):
pathways = []
for _ in range(4):
Expand Down
2 changes: 1 addition & 1 deletion course_discovery/apps/api/v1/views/pathways.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
""" Views for accessing Pathway data """
from rest_framework import viewsets
from django_filters.rest_framework import DjangoFilterBackend
from rest_framework import viewsets

from course_discovery.apps.api import serializers
from course_discovery.apps.api.cache import CompressedCacheResponseMixin
Expand Down
1 change: 1 addition & 0 deletions course_discovery/apps/course_metadata/choices.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ def INTERNAL_STATUS_TRANSITIONS(cls):
def REVIEW_STATES(cls):
return [cls.LegalReview.value, cls.InternalReview.value]


class PathwayStatus(models.TextChoices):
Unpublished = 'unpublished', _('Unpublished')
Published = 'published', _('Published')
Expand Down
3 changes: 1 addition & 2 deletions course_discovery/apps/course_metadata/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@
from course_discovery.apps.course_metadata import emails
from course_discovery.apps.course_metadata.choices import (
CertificateType, CourseLength, CourseRunPacing, CourseRunRestrictionType, CourseRunStatus,
ExternalCourseMarketingType, ExternalProductStatus, PathwayStatus, PayeeType, ProgramStatus,
ReportingType
ExternalCourseMarketingType, ExternalProductStatus, PathwayStatus, PayeeType, ProgramStatus, ReportingType
)
from course_discovery.apps.course_metadata.constants import SUBDIRECTORY_SLUG_FORMAT_REGEX, PathwayType
from course_discovery.apps.course_metadata.fields import AutoSlugWithSlashesField, HtmlField, NullHtmlField
Expand Down

0 comments on commit b8f2678

Please sign in to comment.