DescriptionGet rid of the global DB object
This is very simple fix; the solution as described in
http://docs.pylonsproject.org/projects/pyramid_cookbook/en/latest/database/mongodb.html
turns out to be a bit more complicated: Creating the DB object in
a NewRequest event does not work for unit tests derived from ViewTestBase
because charmworld.main() is not called for these tests.
https://code.launchpad.net/~adeuring/charmworld/no-global-db-obj-2/+merge/145206
(do not edit description out of merge proposal)
Patch Set 1 #
Total comments: 1
MessagesTotal messages: 3
|