Permalink
Browse files

coveralls integration

  • Loading branch information...
1 parent 25bc4c0 commit a1e6599a47acb172f74fa8bc5ed8d57894b48b90 @ramusus committed Mar 9, 2013
Showing with 22 additions and 4 deletions.
  1. +13 −0 .coveragerc
  2. +4 −1 .travis.yml
  3. +1 −1 README.md
  4. +4 −2 vkontakte_wall/models.py
View
@@ -0,0 +1,13 @@
+[run]
+omit =
+ *migrations*
+ *admin.py
+
+[report]
+exclude_lines =
+ def __repr__
+ def __unicode__
+ def parse_args
+ pragma: no cover
+ raise NotImplementedError
+ if __name__ == .__main__.:
View
@@ -8,9 +8,12 @@ install:
- pip install -q Django>=$DJANGO --use-mirrors
- pip install -q simplejson --use-mirrors
- pip install -q factory_boy --use-mirrors
+ - pip install -q coveralls --use-mirrors
- pip install -q . --use-mirrors
script:
- - python quicktest.py vkontakte_wall
+ - coverage run --source=vkontakte_wall quicktest.py vkontakte_wall
+after_success:
+ - coveralls
notifications:
email:
recipients:
View
@@ -1,6 +1,6 @@
# Django Vkontakte Wall
-[![Build Status](https://travis-ci.org/ramusus/django-vkontakte-wall.png?branch=master)](https://travis-ci.org/ramusus/django-vkontakte-wall)
+[![Build Status](https://travis-ci.org/ramusus/django-vkontakte-wall.png?branch=master)](https://travis-ci.org/ramusus/django-vkontakte-wall) [![Coverage Status](https://coveralls.io/repos/ramusus/django-vkontakte-wall/badge.png?branch=master)](https://coveralls.io/r/ramusus/django-vkontakte-wall)
Приложение позволяет взаимодействовать со стенами Вконтакте, сообщениями и комментариями на них через Вконтакте API и парсер используя стандартные модели Django
View
@@ -299,8 +299,9 @@ def fetch_comments(self, *args, **kwargs):
def update_likes(self, offset=0):
'''
- Update fields:
+ Update and save fields:
* likes - count of likes
+ Update relations:
* like_users - users, who likes this post
'''
@@ -339,8 +340,9 @@ def update_likes(self, offset=0):
def update_reposts(self, offset=0):
'''
- Update fields:
+ Update and save fields:
* reposts - count of reposts
+ Update relations
* repost_users - users, who repost this post
'''
post_data = {

0 comments on commit a1e6599

Please sign in to comment.