This repository has been archived by the owner on Nov 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 254
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
74533eb
commit 05026c7
Showing
6 changed files
with
15 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -306,7 +306,7 @@ class EnterpriseOfferFactory(ConditionalOfferFactory): | |
emails_for_usage_alert = '[email protected], [email protected]' | ||
|
||
|
||
class OfferAssignmentFactory(factory.DjangoModelFactory): | ||
class OfferAssignmentFactory(factory.django.DjangoModelFactory): | ||
offer = factory.SubFactory(EnterpriseOfferFactory) | ||
code = factory.Sequence(lambda n: 'VOUCHERCODE{number}'.format(number=n)) | ||
user_email = factory.Sequence(lambda n: 'example_%[email protected]' % n) | ||
|
@@ -322,7 +322,7 @@ class DynamicPercentageDiscountBenefitFactory(BenefitFactory): | |
proxy_class = class_path(DynamicPercentageDiscountBenefit) | ||
|
||
|
||
class CodeAssignmentNudgeEmailTemplatesFactory(factory.DjangoModelFactory): | ||
class CodeAssignmentNudgeEmailTemplatesFactory(factory.django.DjangoModelFactory): | ||
email_greeting = factory.Faker('sentence') | ||
email_closing = factory.Faker('sentence') | ||
email_subject = factory.Faker('sentence') | ||
|
@@ -333,7 +333,7 @@ class Meta: | |
model = CodeAssignmentNudgeEmailTemplates | ||
|
||
|
||
class CodeAssignmentNudgeEmailsFactory(factory.DjangoModelFactory): | ||
class CodeAssignmentNudgeEmailsFactory(factory.django.DjangoModelFactory): | ||
email_template = factory.SubFactory(CodeAssignmentNudgeEmailTemplatesFactory) | ||
user_email = factory.Sequence(lambda n: 'learner_%[email protected]' % n) | ||
email_date = datetime.now() | ||
|
@@ -343,7 +343,7 @@ class Meta: | |
model = CodeAssignmentNudgeEmails | ||
|
||
|
||
class SDNFallbackMetadataFactory(factory.DjangoModelFactory): | ||
class SDNFallbackMetadataFactory(factory.django.DjangoModelFactory): | ||
class Meta: | ||
model = SDNFallbackMetadata | ||
|
||
|
@@ -352,7 +352,7 @@ class Meta: | |
download_timestamp = datetime.now() - timedelta(days=10) | ||
|
||
|
||
class SDNFallbackDataFactory(factory.DjangoModelFactory): | ||
class SDNFallbackDataFactory(factory.django.DjangoModelFactory): | ||
class Meta: | ||
model = SDNFallbackData | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters