mirror of
https://github.com/facebook/sapling.git
synced 2025-01-07 14:10:42 +03:00
5a73bf5843
Summary: This migration allows `./run-tests.py` to run `hgsubversion` tests. Since hgsubversion tests are actually python unittests, we don't care about their output at all, they fail differently. But the behavior of the test suite require us to match whatever the tests prints. We do this later in the stack. Depends on D6719886 Test Plan: - check that tests are runnable at least Reviewers: #sourcecontrol Differential Revision: https://phabricator.intern.facebook.com/D6719890
20 lines
691 B
Python
20 lines
691 B
Python
import test_hgsubversion_util
|
|
|
|
class TestFetchDirectoryRemoval(test_hgsubversion_util.TestBase):
|
|
stupid_mode_tests = True
|
|
|
|
def test_removal(self):
|
|
repo = self._load_fixture_and_fetch('dir_removal.svndump',
|
|
layout='single',
|
|
subdir='dir1')
|
|
self.assertEqual(sorted(repo['tip'].manifest().keys()),
|
|
['1.txt', 'dir2/2.txt'])
|
|
extra = repo['tip'].extra().copy()
|
|
extra.pop('convert_revision', None)
|
|
self.assertEqual(extra, {'branch': 'default'})
|
|
|
|
if __name__ == '__main__':
|
|
import silenttestrunner
|
|
silenttestrunner.main(__name__)
|
|
|