~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_pack_repository.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-03-09 08:45:56 UTC
  • mfrom: (4084.5.2 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090309084556-9i2m12qlud2qcrtw
(robertc) Bulk update all test adaptation into a single approach
        using multiply_tests rather than many varied test adapters.
        (Robert Collins

Show diffs side-by-side

added added

removed removed

Lines of Context:
848
848
            self.assertEqual(2, streaming_calls)
849
849
 
850
850
 
851
 
def load_tests(basic_tests, module, test_loader):
 
851
def load_tests(basic_tests, module, loader):
852
852
    # these give the bzrdir canned format name, and the repository on-disk
853
853
    # format string
854
854
    scenarios_params = [
890
890
              format_supports_external_lookups=True,
891
891
              index_class=BTreeGraphIndex),
892
892
         ]
893
 
    adapter = tests.TestScenarioApplier()
894
893
    # name of the scenario is the format name
895
 
    adapter.scenarios = [(s['format_name'], s) for s in scenarios_params]
896
 
    suite = tests.TestSuite()
897
 
    tests.adapt_tests(basic_tests, adapter, suite)
898
 
    return suite
 
894
    scenarios = [(s['format_name'], s) for s in scenarios_params]
 
895
    return tests.multiply_tests(basic_tests, scenarios, loader.suiteClass())