Start of diff misdetected when message line starts with 'diff'

Jeremy Kerr jk at ozlabs.org
Sat Jan 14 19:36:11 EST 2012


Hi Stefan,

> I wanted to add a unit test and fix could not get the test suite to
> run.  Is there documentation on how to run
> apps/patchwork/tests/patchparser.py?

It just uses the standard django test framework, so you should be able
to run the tests with:

 cd apps
 ./manage.py test patchwork

Or you can run a specific test:

 ./manage.py test patchwork.GitPullSSHUrlTest

However, there is currently an known incompatibility with the postgresql
backend, and django's test framework. If you get an error like:

  psycopg2.ProgrammingError: autocommit cannot be used inside a
  transaction

Then you may want to revert to v2.4.1 of the psycopg2 database backend.

If you need any help, please get in touch. It'd be great to have a unit
test for this.

Cheers,


Jeremy


More information about the Patchwork mailing list