comparison tests/comprehensive/test_stupid_pull.py @ 1057:cd256960b622

comprehensive tests: consolidate stupidity into test_util In other words, remove explicit 'stupid' arguments, set the 'stupid_mode_tests' class variable, and have the metaclass generate non-replay tests.
author Dan Villiom Podlaski Christiansen <dan@cabo.dk>
date Wed, 07 Aug 2013 23:31:57 +0200
parents 903c9c9dfe6a
children cd0d14e25757
comparison
equal deleted inserted replaced
1056:0932bb4d8870 1057:cd256960b622
17 from hgsubversion import wrappers 17 from hgsubversion import wrappers
18 18
19 19
20 def _do_case(self, name, layout): 20 def _do_case(self, name, layout):
21 subdir = test_util.subdir.get(name, '') 21 subdir = test_util.subdir.get(name, '')
22 repo, repo_path = self.load_and_fetch(name, subdir=subdir, stupid=False, 22 repo, repo_path = self.load_and_fetch(name, subdir=subdir, layout=layout)
23 layout=layout)
24 assert test_util.repolen(self.repo) > 0, \ 23 assert test_util.repolen(self.repo) > 0, \
25 'Repo had no changes, maybe you need to add a subdir entry in test_util?' 24 'Repo had no changes, maybe you need to add a subdir entry in test_util?'
26 wc2_path = self.wc_path + '_stupid' 25 wc2_path = self.wc_path + '_stupid'
27 u = ui.ui() 26 u = ui.ui()
28 checkout_path = repo_path 27 checkout_path = repo_path