Skip to content

Commit

Permalink
chore: add docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
AfaqShuaib09 committed Jan 15, 2025
1 parent 757454b commit c044fe0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
10 changes: 10 additions & 0 deletions course_discovery/apps/tagging/tests/factories.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
""" Factories for tagging app models """
import factory
from factory.django import DjangoModelFactory
from factory.fuzzy import FuzzyText
Expand All @@ -7,13 +8,19 @@


class VerticalFilterFactory(DjangoModelFactory):
"""
Factory for VerticalFilter model
"""
class Meta:
model = VerticalFilter

name = FuzzyText()
is_active = True

class SubVerticalFilterFactory(DjangoModelFactory):
"""
Factory for SubVerticalFilter model
"""
class Meta:
model = SubVerticalFilter

Expand All @@ -23,6 +30,9 @@ class Meta:


class CourseVerticalFilterFactory(DjangoModelFactory):
"""
Factory for CourseVerticalFilter model
"""
class Meta:
model = CourseVerticalFilter

Expand Down
1 change: 0 additions & 1 deletion course_discovery/apps/tagging/tests/test_admin.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"""
Test the admin interface for the tagging app.
"""

from django.contrib.admin.sites import site
from django.test import RequestFactory, TestCase

Expand Down
3 changes: 3 additions & 0 deletions course_discovery/apps/tagging/tests/test_models.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
"""
Tests for the models registered in tagging app
"""
from django.test import TestCase

from course_discovery.apps.course_metadata.tests.factories import CourseFactory
Expand Down

0 comments on commit c044fe0

Please sign in to comment.