Since the Such DSL does not allow using the parameters plugin yet (See nose-devs/nose2#139) I am forced to do the following:
with such.A('foo') as it:
for foo in Foo.objects.all(): # Gets objects from real database
@it.should("do bar for foo (#%d)" % foo.id)
def do_bar(case):
# use foo here
foo.bar() # uses the test database.
it.createTests(globals())
I'd rather have the database setup on runner creation if possible.
Since the Such DSL does not allow using the parameters plugin yet (See nose-devs/nose2#139) I am forced to do the following:
I'd rather have the database setup on runner creation if possible.