google-code-export / yabi

Automatically exported from code.google.com/p/yabi
0 stars 1 forks source link

Tests creating multiple exploding backends #158

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Each time I run the tests I get two more exploding backends added. Can the 
tests you get_or_create for these so we only get one?

Also, no backend credentials seem to be created? Or at least they aren't left 
in the db. Won't Backend Credentials be needed to run jobs on Exploding Backend?

Original issue reported on code.google.com by amacgregor on 29 Feb 2012 at 1:08

GoogleCodeExporter commented 9 years ago
You shouldn't end up with more Exploding Backends!
They are cleaned up by the tests, unless you get some error, do you?

What do you mean two more? Do you have one already?
Initial data doesn't have any exploding backends and as discussed the tests are 
currently expecting a "clean" (only initial data) database.
That might be causing problems for you.

The backend credentials used by Exploding Backend is the Null Backend 
Credentials.

Original comment by szab...@gmail.com on 29 Feb 2012 at 1:27

GoogleCodeExporter commented 9 years ago
Yes some of the tests fail. But should tear down of these backends happen 
regardless of failures?

I now have eight exploding backends, so they're not being removed at all.

If you're building a Backend Credential in the tests using Null Credential, 
these are being successfully removed I would say as I can't see them there.

Original comment by amacgregor on 29 Feb 2012 at 2:02

GoogleCodeExporter commented 9 years ago
Looks to be a problem with items being in the DB already.

Original comment by amacgregor on 29 Feb 2012 at 4:03