summaryrefslogtreecommitdiff
path: root/morphlib/repoaliasresolver_tests.py
Commit message (Collapse)AuthorAgeFilesLines
* REPOALIAS: Update repo alias to support dashes and to be more strict.Daniel Silverstone (br7vm)2013-05-281-0/+9
| | | | Now, repo aliases must meet [a-z][a-z0-9-]+ rather than just [a-z0-9]+
* RepoAliasResolver: gimp logging during testsRichard Maw2013-02-111-0/+2
| | | | | | Applications default to logging to console, which causes unwanted output during tests, and I thought this was tidier than allowing tests to override the logger per-call.
* RepoAliasResolver: Add aliases_from_url methodRichard Maw2013-02-111-0/+39
| | | | This returns a sorted list of possible aliases for a url.
* repoaliasresolver: compile patterns on creationRichard Maw2013-02-111-1/+8
| | | | | | | | | This also involved codifying it ignoring malformed aliases. Such behaviour was implemented before, but wasn't obvious. The restructuring made it have a line of code of its own, which meant it needed unit testing.
* python scripts: pep8ize codebaseRichard Maw2012-08-011-11/+11
| | | | | | | | | 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.
* Break long source lines into twoLars Wirzenius2012-05-081-4/+8
|
* Add new RepoAliasResolver class to resolve repo names with aliases.Jannis Pohlmann2012-05-041-0/+79