[Patchew-devel] [PATCH 0/2] [PATCH] Apply PEP8 to tests and adjust apps and url

Paolo Bonzini pbonzini at redhat.com
Thu Nov 29 09:40:59 UTC 2018


On 28/11/18 22:56, Caio Carrara wrote:
> Continuing the patches to apply PEP8 rules to all the project, this
> series apply the rules to tests file and make some small adjustments to
> url and views in www package.

Would you be able to add a tox.ini file that can run pep8 tests and
"./manage.py test"?

I vaguely remember some issues when using "from .patchewtest".  However,
I cannot reproduce it, so I've pushed and we'll see if Travis complains...

Paolo

> Caio Carrara (2):
>   Apply PEP8 to www apps and urls modules
>   Apply PEP8 to tests modules
> 
>  tests/__init__.py                        |   0
>  tests/data/0016-nested-multipart.mbox.gz | Bin 2122 -> 2118 bytes
>  tests/patchewtest.py                     |  34 ++++----
>  tests/test_ansi2html.py                  |   1 +
>  tests/test_custom_tags.py                |   8 +-
>  tests/test_diff.py                       |   7 +-
>  tests/test_git.py                        |  11 ++-
>  tests/test_import.py                     |  11 +--
>  tests/test_mbox.py                       |  14 ++--
>  tests/test_message.py                    |   5 +-
>  tests/test_model.py                      |   5 +-
>  tests/test_project.py                    |   4 +-
>  tests/test_rest.py                       |  94 ++++++++++++++---------
>  tests/test_tags.py                       |   8 +-
>  tests/test_testing.py                    |  58 ++++++++------
>  www/apps.py                              |   2 -
>  www/urls.py                              |  40 +++++-----
>  17 files changed, 173 insertions(+), 129 deletions(-)
>  create mode 100644 tests/__init__.py
> 




More information about the Patchew-devel mailing list