On donderdag 5 juli 2018 18:07:58 CEST clavierpla...@gmail.com wrote:
> It's a script that's supposed to run in the background for an inventory
> management program. The basic idea is that it periodically collects Order
> objects that are associated with a particular Status (1-M foreign key,
> though more like 1-1 in practice). Orders have one or many Orderlines. Then
> it makes all the necessary changes to various quantity fields in various
> inventory tables. So if an Orderline contains a request for 3 of a
> particular item, then 3 of that item are reserved in inventory (or
> backordered or however it needs to go). So far that part has been fine.
> 
> But when that's finished, the Orders and associated Orderlines need updated
> Statuses. The assert statements say that only some of them were updated,
> even though I watched them all update correctly--it's like a partial
> rollback happens before the test finishes. The other failing test checks
> that the process of updating the statuses also logs the events properly in
> a History table; but when the test is run as a suite, the event is only
> partially logged--some records are created and some aren't. But the test
> results are always consistent for the way the test was run.

My first instinct is to run  the suite with `--parallel 1` and see if that 
changes anything. Also, it really helps to have some code - if only to see how 
the methods relate to each other if at all.

-- 
Melvyn Sopacua

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/18693819.ysi9JWK4Ts%40fritzbook.
For more options, visit https://groups.google.com/d/optout.

Reply via email to