[ckan-dev] test issue to avoid

Adrià Mercader adria.mercader at okfn.org
Thu Nov 29 17:40:55 UTC 2012


Hey Toby,
Can you point to the offending setup_class() to have a better example
for possible solutions.

Cheers,

Adrià

On 29 November 2012 16:47, Toby Dacre <toby.okfn at gmail.com> wrote:
> Hi,
>
> I've just spent too long trying to resolve a load of broken tests.
>
> The problem came down to an assert failing within setup_class().  This
> effectively stopped teardown_class() getting run and consequently causing a
> dirty database to exist that then cause a domino effect of fails in tests
> running after.  Just for fun these tests all run fine if run independently.
>
> So
> a) this is just a warning/reminder to avoid/be aware of this issue
> b) How is this best dealt with?  We do want to know something went wrong and
> where but not cause later tests to fail too.  Any ideas?
>
> Cheers
> Toby
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
>




More information about the ckan-dev mailing list