Rev 2564: Document repository_to_test_repository for testing. in sftp://rookery/~/public_html/baz2.0/adapter-cleanup

Robert Collins robertc at robertcollins.net
Mon Jul 2 06:24:29 BST 2007


At sftp://rookery/~/public_html/baz2.0/adapter-cleanup

------------------------------------------------------------
revno: 2564
revision-id: robertc at robertcollins.net-20070702052425-0msyx0beap6klkf9
parent: robertc at robertcollins.net-20070628071528-muyk19rxv7z8dhiy
committer: Robert Collins <robertc at robertcollins.net>
branch nick: adapter-cleanup
timestamp: Mon 2007-07-02 15:24:25 +1000
message:
  Document repository_to_test_repository for testing.
modified:
  NEWS                           NEWS-20050323055033-4e00b5db738777ff
=== modified file 'NEWS'
--- a/NEWS	2007-06-28 07:15:28 +0000
+++ b/NEWS	2007-07-02 05:24:25 +0000
@@ -86,6 +86,14 @@
     * New testing support class ``TestScenarioApplier`` which multiplies
       out a single teste by a list of supplied scenarios. (RobertCollins)
 
+    * Setting ``repository_to_test_repository`` on a repository_implementations
+      test will cause it to be called during repository creation, allowing the
+      testing of repository classes which are not based around the Format
+      concept. For example a repository adapter can be tested in this manner,
+      by altering the repository scenarios to include a scenario that sets this
+      attribute during the test parameterisation in
+      ``bzrlib.tests.repository.repository_implementations``. (Robert Collins)
+
   BUGFIXES:
 
     * Work around python-2.4.1 inhability to correctly parse the



More information about the bazaar-commits mailing list