Mercurial > moin > 1.9
annotate MoinMoin/groups/backends/_tests/test_config_group.py @ 4803:167db6117bb4
Groups2009: pep8 fixes and typo elimination. BaseGroup._iter optimization. Test of group names mapping was removed.
author  Dmitrijs Milajevs <dimazest@gmail.com> 

date  Thu, 11 Jun 2009 13:48:54 +0200 
parents  3b05bf18c0d1 
children  3cea38408fe6 
rev  line source 

4800
3b05bf18c0d1
Groups2009: The BackendTest class provides basic test methods for testing backends. It should be inherited to test backends.
Dmitrijs Milajevs <dimazest@gmail.com>
parents:
diff
changeset

1 # * coding: iso88591 * 
3b05bf18c0d1
Groups2009: The BackendTest class provides basic test methods for testing backends. It should be inherited to test backends.
Dmitrijs Milajevs <dimazest@gmail.com>
parents:
diff
changeset

2 """ 
3b05bf18c0d1
Groups2009: The BackendTest class provides basic test methods for testing backends. It should be inherited to test backends.
Dmitrijs Milajevs <dimazest@gmail.com>
parents:
diff
changeset

3 MoinMoin  MoinMoin.groups.backends.wiki_group tests 
3b05bf18c0d1
Groups2009: The BackendTest class provides basic test methods for testing backends. It should be inherited to test backends.
Dmitrijs Milajevs <dimazest@gmail.com>
parents:
diff
changeset

4 
3b05bf18c0d1
Groups2009: The BackendTest class provides basic test methods for testing backends. It should be inherited to test backends.
Dmitrijs Milajevs <dimazest@gmail.com>
parents:
diff
changeset

5 @copyright: 20032004 by Juergen Hermann <jh@web.de>, 
3b05bf18c0d1
Groups2009: The BackendTest class provides basic test methods for testing backends. It should be inherited to test backends.
Dmitrijs Milajevs <dimazest@gmail.com>
parents:
diff
changeset

6 2007 by MoinMoin:ThomasWaldmann 
3b05bf18c0d1
Groups2009: The BackendTest class provides basic test methods for testing backends. It should be inherited to test backends.
Dmitrijs Milajevs <dimazest@gmail.com>
parents:
diff
changeset

7 2008 by MoinMoin:MelitaMihaljevic 
3b05bf18c0d1
Groups2009: The BackendTest class provides basic test methods for testing backends. It should be inherited to test backends.
Dmitrijs Milajevs <dimazest@gmail.com>
parents:
diff
changeset

8 2009 by MoinMoin:DmitrijsMilajevs 
3b05bf18c0d1
Groups2009: The BackendTest class provides basic test methods for testing backends. It should be inherited to test backends.
Dmitrijs Milajevs <dimazest@gmail.com>
parents:
diff
changeset

9 @license: GNU GPL, see COPYING for details. 
3b05bf18c0d1
Groups2009: The BackendTest class provides basic test methods for testing backends. It should be inherited to test backends.
Dmitrijs Milajevs <dimazest@gmail.com>
parents:
diff
changeset

10 
3b05bf18c0d1
Groups2009: The BackendTest class provides basic test methods for testing backends. It should be inherited to test backends.
Dmitrijs Milajevs <dimazest@gmail.com>
parents:
diff
changeset

11 """ 
3b05bf18c0d1
Groups2009: The BackendTest class provides basic test methods for testing backends. It should be inherited to test backends.
Dmitrijs Milajevs <dimazest@gmail.com>
parents:
diff
changeset

12 
4803
167db6117bb4
Groups2009: pep8 fixes and typo elimination. BaseGroup._iter optimization. Test of group names mapping was removed.
Dmitrijs Milajevs <dimazest@gmail.com>
parents:
4800
diff
changeset

13 from MoinMoin.groups.backends._tests import BackendTest 
4800
3b05bf18c0d1
Groups2009: The BackendTest class provides basic test methods for testing backends. It should be inherited to test backends.
Dmitrijs Milajevs <dimazest@gmail.com>
parents:
diff
changeset

14 from MoinMoin.groups.backends import config_group 
3b05bf18c0d1
Groups2009: The BackendTest class provides basic test methods for testing backends. It should be inherited to test backends.
Dmitrijs Milajevs <dimazest@gmail.com>
parents:
diff
changeset

15 from MoinMoin.groups import GroupManager 
4803
167db6117bb4
Groups2009: pep8 fixes and typo elimination. BaseGroup._iter optimization. Test of group names mapping was removed.
Dmitrijs Milajevs <dimazest@gmail.com>
parents:
4800
diff
changeset

16 from MoinMoin._tests import wikiconfig 
167db6117bb4
Groups2009: pep8 fixes and typo elimination. BaseGroup._iter optimization. Test of group names mapping was removed.
Dmitrijs Milajevs <dimazest@gmail.com>
parents:
4800
diff
changeset

17 
4800
3b05bf18c0d1
Groups2009: The BackendTest class provides basic test methods for testing backends. It should be inherited to test backends.
Dmitrijs Milajevs <dimazest@gmail.com>
parents:
diff
changeset

18 
3b05bf18c0d1
Groups2009: The BackendTest class provides basic test methods for testing backends. It should be inherited to test backends.
Dmitrijs Milajevs <dimazest@gmail.com>
parents:
diff
changeset

19 class TestConfigBackend(BackendTest): 
3b05bf18c0d1
Groups2009: The BackendTest class provides basic test methods for testing backends. It should be inherited to test backends.
Dmitrijs Milajevs <dimazest@gmail.com>
parents:
diff
changeset

20 
4803
167db6117bb4
Groups2009: pep8 fixes and typo elimination. BaseGroup._iter optimization. Test of group names mapping was removed.
Dmitrijs Milajevs <dimazest@gmail.com>
parents:
4800
diff
changeset

21 class Config(wikiconfig.Config): 
167db6117bb4
Groups2009: pep8 fixes and typo elimination. BaseGroup._iter optimization. Test of group names mapping was removed.
Dmitrijs Milajevs <dimazest@gmail.com>
parents:
4800
diff
changeset

22 
4800
3b05bf18c0d1
Groups2009: The BackendTest class provides basic test methods for testing backends. It should be inherited to test backends.
Dmitrijs Milajevs <dimazest@gmail.com>
parents:
diff
changeset

23 def group_manager_init(self, request): 
3b05bf18c0d1
Groups2009: The BackendTest class provides basic test methods for testing backends. It should be inherited to test backends.
Dmitrijs Milajevs <dimazest@gmail.com>
parents:
diff
changeset

24 self.config_groups = BackendTest.test_groups 
3b05bf18c0d1
Groups2009: The BackendTest class provides basic test methods for testing backends. It should be inherited to test backends.
Dmitrijs Milajevs <dimazest@gmail.com>
parents:
diff
changeset

25 return GroupManager(backends=[config_group.Backend(request)]) 
3b05bf18c0d1
Groups2009: The BackendTest class provides basic test methods for testing backends. It should be inherited to test backends.
Dmitrijs Milajevs <dimazest@gmail.com>
parents:
diff
changeset

26 
3b05bf18c0d1
Groups2009: The BackendTest class provides basic test methods for testing backends. It should be inherited to test backends.
Dmitrijs Milajevs <dimazest@gmail.com>
parents:
diff
changeset

27 
3b05bf18c0d1
Groups2009: The BackendTest class provides basic test methods for testing backends. It should be inherited to test backends.
Dmitrijs Milajevs <dimazest@gmail.com>
parents:
diff
changeset

28 coverage_modules = ['MoinMoin.groups.backends.config_group'] 
3b05bf18c0d1
Groups2009: The BackendTest class provides basic test methods for testing backends. It should be inherited to test backends.
Dmitrijs Milajevs <dimazest@gmail.com>
parents:
diff
changeset

29 