Skip to content

Commit a6679f7

Browse files
committed
chore: moving the migration to the next commit
* moving the migration to the next commit * re-adding the attribute to one locatione whee it's representing the edx-platform data model
1 parent d138fa0 commit a6679f7

File tree

3 files changed

+3
-18
lines changed

3 files changed

+3
-18
lines changed

credentials/apps/credentials/migrations/0033_remove_download_url.py

Lines changed: 0 additions & 17 deletions
This file was deleted.

credentials/apps/credentials/tests/factories.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ class Meta:
4747
credential = factory.SubFactory(ProgramCertificateFactory)
4848
username = factory.Sequence(lambda o: "robot%d" % o)
4949
status = models.UserCredential.AWARDED
50-
download_url = factory.Faker("url")
5150
uuid = factory.LazyFunction(uuid.uuid4)
5251

5352

credentials/apps/credentials/tests/test_signals.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ def setUp(self):
3535
self.revoked_event_type = "org.openedx.learning.certificate.revoked.v1"
3636

3737
def _setup_event_data(self, event_type):
38+
# Stub out a test certificate representation per the data class modeling of the
39+
# edx-platform certificates app.
3840
certificate_data = CertificateData(
3941
user=UserData(
4042
pii=UserPersonalData(
@@ -51,6 +53,7 @@ def _setup_event_data(self, event_type):
5153
mode=self.mode,
5254
grade="1.0",
5355
current_status="",
56+
download_url="http://blah.blah.blah/certificate/1",
5457
name="hypnofrog",
5558
)
5659
event_metadata = EventsMetadata(

0 commit comments

Comments
 (0)