Rev 2468: move the transport implementations tests into their own package. in http://bzr.arbash-meinel.com/branches/bzr/0.17-dev/test_autoloader
John Arbash Meinel
john at arbash-meinel.com
Fri Apr 27 21:42:27 BST 2007
At http://bzr.arbash-meinel.com/branches/bzr/0.17-dev/test_autoloader
------------------------------------------------------------
revno: 2468
revision-id: john at arbash-meinel.com-20070427204211-yubidu8dtxz1bmf9
parent: john at arbash-meinel.com-20070427203112-y3n41qkr3y9nlr20
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: test_autoloader
timestamp: Fri 2007-04-27 15:42:11 -0500
message:
move the transport implementations tests into their own package.
added:
bzrlib/tests/transport_implementations/ bzrlibteststransport-20070427203208-zl982bqkb400m7h9-1
bzrlib/tests/transport_implementations/__init__.py __init__.py-20070427204159-rs104bugblkajzg0-1
renamed:
bzrlib/tests/test_read_bundle.py => bzrlib/tests/transport_implementations/test_read_bundle.py test_read_bundle.py-20060615211421-ud8cwr1ulgd914zf-1
bzrlib/tests/test_transport_implementations.py => bzrlib/tests/transport_implementations/test_transport_implementations.py test_transport_implementations.py-20051227111451-f97c5c7d5c49fce7
modified:
bzrlib/tests/__init__.py selftest.py-20050531073622-8d0e3c8845c97a64
-------------- next part --------------
=== added directory 'bzrlib/tests/transport_implementations'
=== added file 'bzrlib/tests/transport_implementations/__init__.py'
--- a/bzrlib/tests/transport_implementations/__init__.py 1970-01-01 00:00:00 +0000
+++ b/bzrlib/tests/transport_implementations/__init__.py 2007-04-27 20:42:11 +0000
@@ -0,0 +1,32 @@
+# Copyright (C) 2007 Canonical Ltd
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+"""Tests for Transport implementations."""
+
+from bzrlib import tests
+
+
+def test_suite():
+ from bzrlib.transport import TransportTestProviderAdapter
+ test_transport_implementations = [
+ 'bzrlib.tests.transport_implementations.test_transport_implementations',
+ 'bzrlib.tests.transport_implementations.test_read_bundle',
+ ]
+ suite = tests.TestSuite()
+ loader = tests.TestLoader()
+ adapter = TransportTestProviderAdapter()
+ tests.adapt_modules(test_transport_implementations, adapter, loader, suite)
+ return suite
=== renamed file 'bzrlib/tests/test_read_bundle.py' => 'bzrlib/tests/transport_implementations/test_read_bundle.py'
=== renamed file 'bzrlib/tests/test_transport_implementations.py' => 'bzrlib/tests/transport_implementations/test_transport_implementations.py'
=== modified file 'bzrlib/tests/__init__.py'
--- a/bzrlib/tests/__init__.py 2007-04-27 20:31:12 +0000
+++ b/bzrlib/tests/__init__.py 2007-04-27 20:42:11 +0000
@@ -127,6 +127,7 @@
import bzrlib.tests.per_lock
import bzrlib.tests.repository_implementations
import bzrlib.tests.revisionstore_implementations
+ import bzrlib.tests.transport_implementations
import bzrlib.tests.tree_implementations
import bzrlib.tests.workingtree_implementations
return [
@@ -140,6 +141,7 @@
bzrlib.tests.per_lock,
bzrlib.tests.repository_implementations,
bzrlib.tests.revisionstore_implementations,
+ bzrlib.tests.transport_implementations,
bzrlib.tests.tree_implementations,
bzrlib.tests.workingtree_implementations,
]
@@ -2375,16 +2377,9 @@
'bzrlib.tests.test_wsgi',
'bzrlib.tests.test_xml',
]
- test_transport_implementations = [
- 'bzrlib.tests.test_transport_implementations',
- 'bzrlib.tests.test_read_bundle',
- ]
suite = TestUtil.TestSuite()
loader = TestUtil.TestLoader()
suite.addTest(loader.loadTestsFromModuleNames(testmod_names))
- from bzrlib.transport import TransportTestProviderAdapter
- adapter = TransportTestProviderAdapter()
- adapt_modules(test_transport_implementations, adapter, loader, suite)
for package in packages_to_test():
suite.addTest(package.test_suite())
for m in MODULES_TO_TEST:
More information about the bazaar-commits
mailing list