diff options
author | Adam Coldrick <adam.coldrick@codethink.co.uk> | 2014-04-16 14:38:14 +0000 |
---|---|---|
committer | Adam Coldrick <adam.coldrick@codethink.co.uk> | 2014-04-16 14:38:14 +0000 |
commit | 5a800863ca1b26a68b9268138192d0ed793618ba (patch) | |
tree | 91edafb4df84eb9c0a11e313b35f8d1a2e5414f5 /morphlib/morphologyfactory_tests.py | |
parent | e787f8e2c9b5abd5b6405427cf17072d4b8e19c9 (diff) | |
download | morph-5a800863ca1b26a68b9268138192d0ed793618ba.tar.gz |
ONGOING: Work to make tests passbaserock/adamcoldrick/chunk-morphologies-in-definitions
This commit exists because I am not going to be around for a week and a
half so I'm putting this here in case anyone picks up this while I'm
gone. It will want splitting up and rebasing.
Diffstat (limited to 'morphlib/morphologyfactory_tests.py')
-rw-r--r-- | morphlib/morphologyfactory_tests.py | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/morphlib/morphologyfactory_tests.py b/morphlib/morphologyfactory_tests.py index 39092857..e72f512d 100644 --- a/morphlib/morphologyfactory_tests.py +++ b/morphlib/morphologyfactory_tests.py @@ -219,50 +219,12 @@ class MorphologyFactoryTests(unittest.TestCase): 'remote-chunk.morph') self.assertEqual('remote-chunk', morph['name']) - def test_autodetects_local_morphology(self): - self.lr.cat = self.nolocalmorph - self.lr.ls_tree = self.autotoolsbuildsystem - morph = self.mf.get_morphology('reponame', 'sha1', - 'assumed-local.morph') - self.assertEqual('assumed-local', morph['name']) - - def test_autodetects_remote_morphology(self): - self.lrc.has_repo = self.doesnothaverepo - self.rrc.cat_file = self.noremotemorph - self.rrc.ls_tree = self.autotoolsbuildsystem - morph = self.mf.get_morphology('reponame', 'sha1', - 'assumed-remote.morph') - self.assertEqual('assumed-remote', morph['name']) - - def test_raises_error_when_fails_detect_locally(self): - self.lr.cat = self.nolocalfile - self.assertRaises(AutodetectError, self.mf.get_morphology, - 'reponame', 'sha1', 'unreached.morph') - - def test_raises_error_when_fails_detect_remotely(self): - self.lrc.has_repo = self.doesnothaverepo - self.rrc.cat_file = self.noremotefile -# self.mf.get_morphology('reponame', 'sha1', 'unreached.morph') - self.assertRaises(AutodetectError, self.mf.get_morphology, - 'reponame', 'sha1', 'unreached.morph') - - def test_raises_error_when_name_mismatches(self): - self.assertRaises(morphlib.Error, self.mf.get_morphology, - 'reponame', 'sha1', 'name-mismatch.morph') - def test_looks_locally_with_no_remote(self): self.lr.ls_tree = self.localmorph morph = self.lmf.get_morphology('reponame', 'sha1', 'chunk.morph') self.assertEqual('chunk', morph['name']) - def test_autodetects_locally_with_no_remote(self): - self.lr.cat = self.nolocalmorph - self.lr.ls_tree = self.autotoolsbuildsystem - morph = self.mf.get_morphology('reponame', 'sha1', - 'assumed-local.morph') - self.assertEqual('assumed-local', morph['name']) - def test_fails_when_local_not_cached_and_no_remote(self): self.lrc.has_repo = self.doesnothaverepo self.assertRaises(NotcachedError, self.lmf.get_morphology, |