mirror of
https://github.com/django/django.git
synced 2025-10-25 14:46:09 +00:00
Refs #36500 -- Rewrapped long docstrings and block comments via a script.
Rewrapped long docstrings and block comments to 79 characters + newline using script from https://github.com/medmunds/autofix-w505.
This commit is contained in:
@@ -129,7 +129,8 @@ class BaseOrderWithRespectToTests:
|
||||
|
||||
def test_bulk_create_with_empty_parent(self):
|
||||
"""
|
||||
bulk_create() should properly set _order when parent has no existing children.
|
||||
bulk_create() should properly set _order when parent has no existing
|
||||
children.
|
||||
"""
|
||||
question = self.Question.objects.create(text="Test Question")
|
||||
answers = [self.Answer(question=question, text=f"Answer {i}") for i in range(3)]
|
||||
@@ -157,7 +158,8 @@ class BaseOrderWithRespectToTests:
|
||||
|
||||
def test_bulk_create_multiple_parents(self):
|
||||
"""
|
||||
bulk_create() should maintain separate _order sequences for different parents.
|
||||
bulk_create() should maintain separate _order sequences for different
|
||||
parents.
|
||||
"""
|
||||
question0 = self.Question.objects.create(text="Question 0")
|
||||
question1 = self.Question.objects.create(text="Question 1")
|
||||
@@ -251,7 +253,8 @@ class BaseOrderWithRespectToTests:
|
||||
|
||||
# Existing answer to set initial _order=0.
|
||||
self.Answer.objects.create(question=question, text="Existing Answer")
|
||||
# Two manually set _order=1 and one auto (which may also be assigned 1).
|
||||
# Two manually set _order=1 and one auto (which may also be assigned
|
||||
# 1).
|
||||
answers = [
|
||||
self.Answer(question=question, text="Manual Order 1", _order=1),
|
||||
self.Answer(question=question, text="Auto Order 1"),
|
||||
@@ -265,7 +268,8 @@ class BaseOrderWithRespectToTests:
|
||||
# Manual values are as assigned, even if duplicated.
|
||||
self.assertEqual(manual_1._order, 1)
|
||||
self.assertEqual(manual_2._order, 1)
|
||||
# Auto-assigned orders may also use 1 or any value, depending on implementation.
|
||||
# If no collision logic, they may overlap with manual values.
|
||||
# Auto-assigned orders may also use 1 or any value, depending on
|
||||
# implementation. If no collision logic, they may overlap with manual
|
||||
# values.
|
||||
self.assertEqual(auto_1._order, 1)
|
||||
self.assertEqual(auto_2._order, 2)
|
||||
|
||||
Reference in New Issue
Block a user