Skip to content

Commit

Permalink
tweak a listing, get tests passing again
Browse files Browse the repository at this point in the history
  • Loading branch information
hjwp committed Mar 5, 2020
1 parent 67dfe67 commit b3bc6e6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions appendix_django.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,12 @@ but it is still made up of familiar-looking Django code:
def test_repository_can_retrieve_a_batch_with_allocations():
sku = "PONY-STATUE"
d_line = django_models.OrderLine.objects.create(orderid="order1", sku=sku, qty=12)
d_b1 = django_models.Batch.objects.create(
reference="batch1", sku=sku, qty=100, eta=None
)
d_b2 = django_models.Batch.objects.create(
reference="batch2", sku=sku, qty=100, eta=None
)
d_batch1 = django_models.Batch.objects.create(
reference="batch1", sku=sku, qty=100, eta=None
)
d_batch2 = django_models.Batch.objects.create(
reference="batch2", sku=sku, qty=100, eta=None
)
django_models.Allocation.objects.create(line=d_line, batch=d_batch1)
repo = repository.DjangoRepository()
Expand Down
2 changes: 1 addition & 1 deletion code

0 comments on commit b3bc6e6

Please sign in to comment.