Skip to content

Commit

Permalink
chore: fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
navinkarkera committed Jan 15, 2025
1 parent 1295028 commit 061016f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions openedx_learning/apps/authoring/linking/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@

@admin.register(PublishableEntityLink)
class PublishableEntityLinkAdmin(ReadOnlyModelAdmin):
"""
PublishableEntityLink admin.
"""
fields = [
"uuid",
"upstream_block",
Expand Down Expand Up @@ -44,6 +47,9 @@ class PublishableEntityLinkAdmin(ReadOnlyModelAdmin):

@admin.register(CourseLinksStatus)
class CourseLinksStatusAdmin(admin.ModelAdmin):
"""
CourseLinksStatus admin.
"""
fields = (
"context_key",
"status",
Expand Down
4 changes: 4 additions & 0 deletions openedx_learning/apps/authoring/linking/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ class CourseLinksStatusChoices(models.TextChoices):


class CourseLinksStatus(models.Model):
"""
This table stores current processing status of upstream-downstream links in PublishableEntityLink table for a
course.
"""
context_key = key_field(
help_text=_("Linking status for downstream/course context key"),
)
Expand Down
6 changes: 1 addition & 5 deletions tests/openedx_learning/apps/authoring/linking/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,13 @@
from __future__ import annotations

from datetime import datetime, timezone
from uuid import UUID

import pytest
from django.core.exceptions import ValidationError

from openedx_learning.apps.authoring.components import api as components_api
from openedx_learning.apps.authoring.components.models import Component, ComponentType
from openedx_learning.apps.authoring.linking import api as linking_api
from openedx_learning.apps.authoring.linking.models import CourseLinksStatus, PublishableEntityLink
from openedx_learning.apps.authoring.publishing import api as publishing_api
from openedx_learning.apps.authoring.publishing.models import LearningPackage
from openedx_learning.apps.authoring.components.models import Component, ComponentType
from openedx_learning.lib.test_utils import TestCase


Expand Down

0 comments on commit 061016f

Please sign in to comment.