diff options
author | Richard Maw <richard.maw@gmail.com> | 2014-09-10 13:17:54 +0000 |
---|---|---|
committer | Richard Maw <richard.maw@gmail.com> | 2014-09-17 15:51:10 +0000 |
commit | b3dcb7963988e204d8d8651f006a6791b04b3cb6 (patch) | |
tree | 7f875b5d2ddcdcd86b9ad2fae3762bcaf8a3bf78 /morphlib/artifactresolver_tests.py | |
parent | 776961cdf1890aaed5a64cf5afb067ee86e88a80 (diff) | |
download | morph-b3dcb7963988e204d8d8651f006a6791b04b3cb6.tar.gz |
Don't validate morphologies during ArtifactResolver
Diffstat (limited to 'morphlib/artifactresolver_tests.py')
-rw-r--r-- | morphlib/artifactresolver_tests.py | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/morphlib/artifactresolver_tests.py b/morphlib/artifactresolver_tests.py index 96f7ced8..2051cbfd 100644 --- a/morphlib/artifactresolver_tests.py +++ b/morphlib/artifactresolver_tests.py @@ -457,34 +457,6 @@ class ArtifactResolverTests(unittest.TestCase): self.assertRaises(morphlib.artifactresolver.DependencyOrderError, self.resolver.resolve_artifacts, pool) - def test_detection_of_invalid_build_depends_format(self): - pool = morphlib.sourcepool.SourcePool() - - loader = morphlib.morphloader.MorphologyLoader() - morph = loader.load_from_string( - ''' - name: stratum - kind: stratum - build-depends: [] - chunks: - - name: chunk - repo: repo - ref: original/ref - build-depends: whatever - ''') - morph.builds_artifacts = ['stratum'] - stratum = morphlib.source.Source( - 'repo', 'original/ref', 'sha1', 'tree', morph, 'stratum.morph') - pool.add(stratum) - - morph = get_chunk_morphology('chunk') - chunk = morphlib.source.Source( - 'repo', 'original/ref', 'sha1', 'tree', morph, 'chunk.morph') - pool.add(chunk) - - self.assertRaises(morphlib.artifactresolver.DependencyFormatError, - self.resolver.resolve_artifacts, pool) - # TODO: Expand test suite to include better dependency checking, many # tests were removed due to the fundamental change in how artifacts |