~sil/desktopcouch/dont-parse-all-the-changes

Viewing all changes in revision 137.

  • Committer: Tarmac
  • Author(s): James Westby
  • Date: 2010-03-10 22:19:21 UTC
  • mfrom: (121.7.3 desktopcouch)
  • Revision ID: cmiller@hypatia-20100310221921-psx83oo7wp750gzg
Add with_auth and with_keyring arguments to Context.

If with_auth is False then a couch started in the created context won't require or accept credentials. This makes it not really a desktopcouch, but the facilities for starting and stopping couchdb with a restricted configuration can be hugely useful to other projects to use in e.g. test suites.

If with_keyring is False then the credentials won't be read from or stored to gnome-keyring, so that if it is a non-default context (e.g. in a testsuite) it doesn't intefere with the user's desktopcouch, as gnome-keyring is the only global object that Context interacts with.

Use a mock keyring during the tests to isolate them from the user more.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: