Skip to content

Commit

Permalink
fix(wordpress): pytest errors
Browse files Browse the repository at this point in the history
  • Loading branch information
becdavid committed Oct 4, 2023
1 parent d251dd6 commit a0973a0
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 14 deletions.
2 changes: 1 addition & 1 deletion course_discovery/apps/course_metadata/choices.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Exceptions defined for `course_metadata`.
"""

from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _
from djchoices import ChoiceItem, DjangoChoices


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -312,11 +312,6 @@ class Migration(migrations.Migration):
name='time',
field=models.CharField(blank=True, default='', help_text='The time after which the deadline expires (e.g. 11:59 PM EST).', max_length=255),
),
migrations.AlterField(
model_name='historicalmode',
name='certificate_type',
field=models.CharField(blank=True, choices=[('honor', 'Honor'), ('credit', 'Credit'), ('verified', 'Verified'), ('professional', 'Professional'), ('executive-education', 'Executive Education')], default='', help_text='Certificate type granted if this mode is eligible for a certificate, or blank if not.', max_length=64),
),
migrations.AlterField(
model_name='historicalorganization',
name='certificate_name',
Expand Down Expand Up @@ -392,11 +387,6 @@ class Migration(migrations.Migration):
name='orgs',
field=sortedm2m.fields.SortedManyToManyField(blank=True, help_text=None, null=True, to='course_metadata.Organization'),
),
migrations.AlterField(
model_name='mode',
name='certificate_type',
field=models.CharField(blank=True, choices=[('honor', 'Honor'), ('credit', 'Credit'), ('verified', 'Verified'), ('professional', 'Professional'), ('executive-education', 'Executive Education')], default='', help_text='Certificate type granted if this mode is eligible for a certificate, or blank if not.', max_length=64),
),
migrations.AlterField(
model_name='objective',
name='description',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Generated by Django 3.2.16 on 2023-10-04 12:44

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('course_metadata', '0276_add_bootcamp_modes'),
('course_metadata', '0284_auto_20220525_1731'),
]

operations = [
]
2 changes: 1 addition & 1 deletion course_discovery/apps/course_metadata/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from django.db.models.signals import m2m_changed
from django.dispatch import receiver
from django.utils.functional import cached_property
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _
from django_elasticsearch_dsl.registries import registry
from django_extensions.db.fields import AutoSlugField
from django_extensions.db.models import TimeStampedModel
Expand Down
4 changes: 2 additions & 2 deletions course_discovery/apps/course_metadata/tests/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,9 @@ class CourseRunFactory(SalesforceRecordFactory):
status = CourseRunStatus.Published
uuid = factory.LazyFunction(uuid4)
key = FuzzyText(prefix='course-v1:org+', suffix='+fake')
external_key = None
external_key = ''
course = factory.SubFactory(CourseFactory)
title_override = None
title_override = ''
short_description_override = None
full_description_override = None
language = factory.Iterator(LanguageTag.objects.all())
Expand Down

0 comments on commit a0973a0

Please sign in to comment.