Commit graph

8 commits

Author SHA1 Message Date
Paul Morgan
0e218077b3 HACKING: tests on python3 require rpm-python3 2014-03-08 22:36:57 +00:00
Paul Morgan
4e29304554 docs: createrepo is needed for functional tests 2014-02-28 15:38:25 +00:00
Paul Morgan
1182b13713 add unit tests and fix exception clause compatibility
Exceptions are now compatible with both python 2.4 and 3.3,
and we have unit tests to detect regressions.

The syntax for capturing exceptions changed in python 3, but
we need to continue supporting python 2.4 syntax since many
people use tito on RHEL 5, which has python 2.4.

http://docs.python.org/dev/howto/pyporting.html#capturing-the-currently-raised-exception
2014-02-28 15:02:50 +00:00
Paul Morgan
c108f6022a add pep8 tests for syntax errors 2014-02-27 21:22:05 +00:00
Paul Morgan
3be5a2d1b6 provide config for editorconfig plugins
* If a dev adds an editorconfig plugin to their editor,
  automatically configure their editor for code style.

* Specify 4-space softtabs so new code will be compatible
  with Python 3.

* Put the same settings in .gitattributes so git diff
  highlights whitespace errors.
2014-02-27 21:22:05 +00:00
Devan Goodwin
a9837f3cfc HACKING tips updated. 2011-10-15 13:17:07 -03:00
Devan Goodwin
69a108dfad Update HACKING with test running instructions. 2009-07-25 11:55:45 -03:00
Devan Goodwin
e5e98bc098 Big test refactor.
Introduce unit test framework, disable functional test framework for
now, but getting closer to something that's sensible.
2009-07-24 23:00:45 -03:00