Skip to content

Commit

Permalink
chore: lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pmakwana93 committed Oct 22, 2024
1 parent fdf74a2 commit 3b496a0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 30 deletions.
26 changes: 1 addition & 25 deletions enterprise_catalog/apps/api/v2/tests/test_views.py
Original file line number Diff line number Diff line change
@@ -1,41 +1,17 @@
import json
import json
import uuid
from datetime import datetime
from typing import final
from unittest import mock

import ddt
import pytz
from django.conf import settings
from django.utils.text import slugify
from rest_framework import status
from rest_framework.reverse import reverse
from rest_framework.settings import api_settings
from six.moves.urllib.parse import quote_plus

from enterprise_catalog.apps.api.v1.tests.mixins import APITestMixin
from enterprise_catalog.apps.api.v1.utils import is_any_course_run_active
from enterprise_catalog.apps.catalog.constants import (
COURSE,
COURSE_RUN,
EXEC_ED_2U_COURSE_TYPE,
LEARNER_PATHWAY,
PROGRAM,
)
from enterprise_catalog.apps.catalog.models import (
ContentMetadata,
)
from enterprise_catalog.apps.catalog.models import ContentMetadata
from enterprise_catalog.apps.catalog.tests import test_utils
from enterprise_catalog.apps.catalog.tests.factories import (
ContentMetadataFactory,
EnterpriseCatalogFactory,
)
from enterprise_catalog.apps.catalog.utils import (
enterprise_proxy_login_url,
get_content_key,
get_parent_content_key,
)


@ddt.ddt
Expand Down
1 change: 1 addition & 0 deletions enterprise_catalog/apps/api/v2/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
EnterpriseCatalogGetContentMetadataV2,
)


app_name = 'v2'

router = DefaultRouter()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
from enterprise_catalog.apps.api.v1.views.enterprise_catalog_get_content_metadata import EnterpriseCatalogGetContentMetadata
from enterprise_catalog.apps.api.v1.views.enterprise_catalog_get_content_metadata import (
EnterpriseCatalogGetContentMetadata,
)


class EnterpriseCatalogGetContentMetadataV2(EnterpriseCatalogGetContentMetadata):
Expand Down
5 changes: 1 addition & 4 deletions enterprise_catalog/apps/catalog/tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
""" Test Util for catalog models. """

from enterprise_catalog.apps.catalog.constants import (
COURSE,
COURSE_RUN,
)
from enterprise_catalog.apps.catalog.constants import COURSE, COURSE_RUN
from enterprise_catalog.apps.catalog.tests import factories


Expand Down

0 comments on commit 3b496a0

Please sign in to comment.