fizyk / pyramid_localize

Package to provide translation methods for pyramid, and means to reload translations without stopping the application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

raise test coverage to at least 70%

fizyk opened this issue · comments

commented

@fizyk I've extended the tests, here's my local run from my branch

py27 runtests: commands[2] | coverage report
Name                                       Stmts   Miss  Cover
--------------------------------------------------------------
pyramid_localize/__init__.py                  29     24    17%
pyramid_localize/models.py                    35      1    97%
pyramid_localize/negotiator.py                14      0   100%
pyramid_localize/request.py                   37      3    92%
pyramid_localize/routing/__init__.py           1      0   100%
pyramid_localize/routing/predicates.py         8      0   100%
pyramid_localize/subscribers/__init__.py       1      0   100%
pyramid_localize/subscribers/fake.py          13      0   100%
pyramid_localize/subscribers/i18n.py          12      0   100%
pyramid_localize/tools.py                     44      0   100%
pyramid_localize/views/__init__.py             1      0   100%
pyramid_localize/views/catalogue.py           80     14    83%
--------------------------------------------------------------
TOTAL                                        275     42    85%

Nice one.

Please create a pull request so I could do a proper review :)