summaryrefslogtreecommitdiff
path: root/morphlib/remoteartifactcache_tests.py
Commit message (Collapse)AuthorAgeFilesLines
* FIXUP: Fix up unit tests from change allowing multiple sourcesRichard Maw2014-09-191-2/+4
| | | | | This is logically part of the previous patch, but has been split out to ease reviewing.
* Make remoteartifactcache tests define sensible artifactsRichard Maw2014-09-171-3/+3
| | | | | | | | It rather peculiarly defines artifacts that have different cache keys, but the same source. This flies in the face of how real artifacts get cache keys, and our ability to move the cache key to being per-source.
* unittests: Make the unittests use morphloaderAdam Coldrick2014-08-141-19/+17
| | | | | This commit removes all use of morph2 from the unittests, replacing it with morphloader/morph3. It also converts the test morphologies to YAML.
* unit tests: Fix invalid morphologiesRichard Maw2014-01-151-2/+2
| | | | | | | | | | | | | | | Later validation work causes the morphologies to be validated, when they weren't previously. This would cause the test suite to not pass, since the morphologies defined in the tests are malformed. One common problem was tests that, instead of a name field, had the name of the morpholgy in a field called "chunk". There were a few cases of new fields being needed, since the tests were written before they became mandatory. The most interesting failure was a Source being created, which instead of being passed a morphology object, was passed a string.
* Merge remote-tracking branch 'origin/danielfirth/language-changes'Lars Wirzenius2013-11-051-1/+1
|\ | | | | | | | | | | Needed to update copyright years when merging. Don't understand why the problem didn't show up earlier, since it doesn't seem to have been caused by Dan's changes.
* | Fix RemoteArtifactCache to quote filenames in URLsLars Wirzenius2013-11-041-0/+5
|/ | | | This will allow fetching of gtk+ artifacts.
* Silence log messages during unit testsLars Wirzenius2012-12-181-2/+4
|
* Resolve tree SHA1 along with commit SHA1 when resolving refsJannis Pohlmann2012-09-051-1/+1
| | | | Adjust all other parts and the tests to work with this.
* python scripts: pep8ize codebaseRichard Maw2012-08-011-42/+42
| | | | | | | | | This was done with the aid of the pep8 script, available by running `easy_install pep8`. It may be worth making this part of ./check, but that will require putting pep8 into the development tools stratum. This should be easy, given pep8 has no external dependencies.
* Handle only the urllib2.URLError exceptionsLars Wirzenius2012-06-221-1/+2
| | | | | | | | Handling all exceptions in a way that assumes they're all related to the URL fetching hides unrelated errors, such as missing imports, or bad types, or such. Also, add more logging for debugging.
* Add RemoteArtifactCache. Move metadata basename code into Artifact.Jannis Pohlmann2012-04-191-0/+156