1
# Copyright (C) 2005, 2006, 2007 Canonical Ltd
3
# This program is free software; you can redistribute it and/or modify
4
# it under the terms of the GNU General Public License as published by
5
# the Free Software Foundation; either version 2 of the License, or
6
# (at your option) any later version.
8
# This program is distributed in the hope that it will be useful,
9
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
# GNU General Public License for more details.
13
# You should have received a copy of the GNU General Public License
14
# along with this program; if not, write to the Free Software
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
"""Tests for different inventory implementations"""
19
# NOTE: Don't import Inventory here, to make sure that we don't accidentally
20
# hardcode that when we should be using self.make_inventory
26
from bzrlib.inventory import (
35
from bzrlib.tests import (
37
multiply_tests_from_modules,
41
def _inventory_test_scenarios():
42
"""Return a sequence of test scenarios.
44
Each scenario is (scenario_name_suffix, params). The params are each
45
set as attributes on the test case.
47
from bzrlib.inventory import (
50
yield ('Inventory', dict(inventory_class=Inventory))
54
"""Generate suite containing all parameterized tests"""
56
'bzrlib.tests.inventory_implementations.basics',
58
return multiply_tests_from_modules(modules_to_test,
59
_inventory_test_scenarios())