Skip to content

Commit

Permalink
added test to reproduce error
Browse files Browse the repository at this point in the history
  • Loading branch information
gecBurton committed Jan 15, 2025
1 parent 8473b0b commit 306f9f0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions django_app/tests/test_migrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,11 @@ def test_0073_chatmessage_new_source_files(original_file, migrator):
)

Citation = old_state.apps.get_model("redbox_core", "Citation")
citation = Citation(chat_message=chat_message, file=file, source="USER UPLOADED DOCUMENT", text="hello!")
citation.save()
citation_1 = Citation(chat_message=chat_message, file=file, source="USER UPLOADED DOCUMENT", text="hello!")
citation_1.save()

citation_2 = Citation(chat_message=chat_message, file=file, source="USER UPLOADED DOCUMENT", text="good bye!")
citation_2.save()

new_state = migrator.apply_tested_migration(
("redbox_core", "0073_chatmessage_new_source_files"),
Expand Down

0 comments on commit 306f9f0

Please sign in to comment.