Skip to content

Commit b3bc6e6

Browse files
committed
tweak a listing, get tests passing again
1 parent 67dfe67 commit b3bc6e6

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

appendix_django.asciidoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,12 @@ but it is still made up of familiar-looking Django code:
104104
def test_repository_can_retrieve_a_batch_with_allocations():
105105
sku = "PONY-STATUE"
106106
d_line = django_models.OrderLine.objects.create(orderid="order1", sku=sku, qty=12)
107-
d_b1 = django_models.Batch.objects.create(
108-
reference="batch1", sku=sku, qty=100, eta=None
109-
)
110-
d_b2 = django_models.Batch.objects.create(
111-
reference="batch2", sku=sku, qty=100, eta=None
112-
)
107+
d_batch1 = django_models.Batch.objects.create(
108+
reference="batch1", sku=sku, qty=100, eta=None
109+
)
110+
d_batch2 = django_models.Batch.objects.create(
111+
reference="batch2", sku=sku, qty=100, eta=None
112+
)
113113
django_models.Allocation.objects.create(line=d_line, batch=d_batch1)
114114
115115
repo = repository.DjangoRepository()

code

0 commit comments

Comments
 (0)