~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to doc/developers/configuration.txt

  • Committer: Vincent Ladeuil
  • Date: 2011-12-21 14:25:26 UTC
  • mto: This revision was merged to the branch mainline in revision 6397.
  • Revision ID: v.ladeuil+lp@free.fr-20111221142526-pnwau0xnalimujts
Provides MemoryStack to simplify configuration setup in tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
128
128
Adding a new store
129
129
------------------
130
130
 
131
 
 
132
 
 
133
131
The following stores are used by ``bzr`` in ways that illustrate various
134
132
uses of sections.
135
133
 
327
325
``Stores`` can be used to build them but shouldn't be used otherwise, ditto
328
326
for sections. Again, the associated tests could and should be used against the
329
327
created stacks.
 
328
 
 
329
Also note that ``MemoryStack`` can be used without any disk resources which
 
330
allows for simpler and faster tests. A common pattern is to accept a
 
331
``config`` parameter related to a given feature and test it with predefined
 
332
configurations without involving the whole
 
333
stack. ``bzrlib.tests.test_commit``, ``bzrlib.tests.test_gpg`` and
 
334
``bzrlib.tests.test_smtp_connection`` are good examples.
 
335