Rev 60: bzr.dev has finish renaming the tests modules. in http://bazaar.launchpad.net/~bzr-upload-devs/bzr-upload/trunk

Vincent Ladeuil v.ladeuil+lp at free.fr
Fri Jul 10 13:46:00 BST 2009


At http://bazaar.launchpad.net/~bzr-upload-devs/bzr-upload/trunk

------------------------------------------------------------
revno: 60
revision-id: v.ladeuil+lp at free.fr-20090710124557-hf1dqba4mly7z98b
parent: v.ladeuil+lp at free.fr-20090313010254-neipw7kmjowv6y28
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: trunk
timestamp: Fri 2009-07-10 14:45:57 +0200
message:
  bzr.dev has finish renaming the tests modules.
  
  * tests/test_upload.py:
  (get_transport_scenarios, load_tests, TestBranchUploadLocations):
  Update per_* references.
-------------- next part --------------
=== modified file 'tests/test_upload.py'
--- a/tests/test_upload.py	2009-03-13 01:02:54 +0000
+++ b/tests/test_upload.py	2009-07-10 12:45:57 +0000
@@ -33,8 +33,8 @@
 from bzrlib.smart import server as smart_server
 
 from bzrlib.tests import (
-    test_transport_implementations,
-    branch_implementations,
+    per_branch,
+    per_transport,
     )
 
 
@@ -48,7 +48,7 @@
 
 def get_transport_scenarios():
     result = []
-    basis = test_transport_implementations.transport_test_permutations()
+    basis = per_transport.transport_test_permutations()
     # Keep only the interesting ones for upload
     for name, d in basis:
         t_class = d['transport_class']
@@ -97,7 +97,7 @@
         remaining_tests, tests.condition_isinstance((
                 TestBranchUploadLocations,
                 )))
-    tests.multiply_tests(b_tests, branch_implementations.branch_scenarios(),
+    tests.multiply_tests(b_tests, per_branch.branch_scenarios(),
                          result)
 
     # No parametrization for the remaining tests
@@ -539,7 +539,7 @@
         self.assertUpFileEqual('bar', 'hello')
 
 
-class TestBranchUploadLocations(branch_implementations.TestCaseWithBranch):
+class TestBranchUploadLocations(per_branch.TestCaseWithBranch):
 
     def test_get_upload_location_unset(self):
         config = self.get_branch().get_config()
@@ -587,7 +587,7 @@
         upload = self._get_cmd_upload()
         up_url = self.get_url(self.branch_dir)
         # Let's try to upload from the just created remote branch into the
-        # branch (with has a working tree).
+        # branch (which has a working tree).
         self.assertRaises(CannotUploadToWorkingTreeError,
                           upload.run, up_url, directory=remote_branch_url)
 



More information about the bazaar-commits mailing list