Mercurial > hgsubversion
changeset 1074:2668785264d7
test_single_dir_clone: use stupid mode metaclass
author | Dan Villiom Podlaski Christiansen <danchr@gmail.com> |
---|---|
date | Fri, 09 Aug 2013 23:46:00 +0200 |
parents | 9a740cbb6895 |
children | cf325cd90b22 |
files | tests/test_single_dir_clone.py |
diffstat | 1 files changed, 3 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test_single_dir_clone.py +++ b/tests/test_single_dir_clone.py @@ -11,9 +11,10 @@ from mercurial import node from mercurial import ui class TestSingleDirClone(test_util.TestBase): + stupid_mode_tests = True + def test_clone_single_dir_simple(self): repo = self._load_fixture_and_fetch('branch_from_tag.svndump', - stupid=False, layout='single', subdir='') self.assertEqual(repo.branchtags().keys(), ['default']) @@ -29,7 +30,6 @@ class TestSingleDirClone(test_util.TestB def test_auto_detect_single(self): repo = self._load_fixture_and_fetch('branch_from_tag.svndump', - stupid=False, layout='auto') self.assertEqual(repo.branchtags().keys(), ['default', 'branch_from_tag']) @@ -38,16 +38,14 @@ class TestSingleDirClone(test_util.TestB shutil.rmtree(self.wc_path) # try again with subdir to get single dir clone repo = self._load_fixture_and_fetch('branch_from_tag.svndump', - stupid=False, layout='auto', subdir='trunk') self.assertEqual(repo.branchtags().keys(), ['default', ]) self.assertEqual(repo['default'].manifest().keys(), oldmanifest) - def test_clone_subdir_is_file_prefix(self, stupid=False): + def test_clone_subdir_is_file_prefix(self): FIXTURE = 'subdir_is_file_prefix.svndump' repo = self._load_fixture_and_fetch(FIXTURE, - stupid=stupid, layout='single', subdir=test_util.subdir[FIXTURE]) self.assertEqual(repo.branchtags().keys(), ['default']) @@ -55,7 +53,6 @@ class TestSingleDirClone(test_util.TestB def test_externals_single(self): repo = self._load_fixture_and_fetch('externals.svndump', - stupid=False, layout='single') for rev in repo: assert '.hgsvnexternals' not in repo[rev].manifest() @@ -74,7 +71,6 @@ class TestSingleDirClone(test_util.TestB # This is the test which demonstrates the brokenness of externals return # TODO enable test when externals in single are fixed repo = self._load_fixture_and_fetch('externals.svndump', - stupid=False, layout='single', subdir='') for rev in repo: