On 24.02.19 08:48, Gerhard Schmidt wrote:> Hi,
>
> I'm writing a pyramid app using traversal and ZODB. Right now i writing
> unit tests and try to test if the _p_changed attribute is set after a
> method that changes a persistent object.
>
> The problem is that _p_changed is always False when runn
We use SqlAlchemy but perhaps this will still help:
We test anything dealing with transactions via Functional Tests or
sometimes Integrated Tests, not Unit Tests.
For Functional Tests, look for examples in the docs that are based on `from
webtest import TestApp`. I think I have an open source
On 26.02.19 23:28, Gerhard Schmidt wrote:
> Am 25.02.2019 um 10:51 schrieb Jens W. Klein:
>> On 24.02.19 08:48, Gerhard Schmidt wrote:> Hi,
[...]>>> Is there a way to test if a persistent object would be saved
when the
>>> transaction is committed.
>>
>> _p_changed is meant as a trigger, but it is
Am 25.02.2019 um 10:51 schrieb Jens W. Klein:
> On 24.02.19 08:48, Gerhard Schmidt wrote:> Hi,
>>
>> I'm writing a pyramid app using traversal and ZODB. Right now i writing
>> unit tests and try to test if the _p_changed attribute is set after a
>> method that changes a persistent object.
>>
>> Th