Commit Graph

568 Commits (master)

Author SHA1 Message Date
Jesús Espino 165b247c6d splitted tests of mdrender in integration and unit tests 2014-06-04 17:27:01 +02:00
Anler Hp aa7ca6e3fc Reconnect disconnected signals in integration tests 2014-06-02 16:57:48 +02:00
Anler Hp 9923e50603 Generic voting application
The stars application has been removed in favor of a more generic voting
application that works with any model. Starring a project is just a
special case of voting a project.

Usage.

Add a vote:

    votes.add_vote(<model instance>, user)

Remove a vote:

    votes.remove_vote(<model instance>, user)

Get the queryset of users that voted an object:

    votes.get_voters(<model instance>)

Get the number of votes an object has:

    votes.get_votes(<model instance>)

Get the objects of type <model> voted by an user:

    votes.get_voted(user, <model>)

The issues application is already making use of the votes application
through the following urls:

        /api/v1/issues/<id>/upvote      <- url name is "issues-upvote"
        /api/v1/issues/<id>/downvote    <- url name is "issues-downvote"
2014-06-02 12:03:09 +02:00
Anler Hp fcf4747e93 Service for adding, removing and listing votes 2014-05-30 12:43:34 +02:00
Anler Hp 34f0dd6f76 List fans and starred projects
List project fans:

     /projects/<project id>/fans
     /projects/<project id>/fans/<user id>

List user starred projects:

     /users/<user id>/starred
     /users/<user id>/starred/<project id>

Also a "star" field with the stars count of a project is included in the
project detail and list responses.
2014-05-27 17:24:57 +02:00
Anler Hp b56dfe7cf5 Star/Unstar projects 2014-05-27 14:40:56 +02:00
Anler Hp a4bb6e7eee Moving neighbors tests to tests/integration 2014-05-27 13:30:02 +02:00
Andrey Antukh 4ec6ba621b Make integration tests as functions. 2014-05-26 17:33:12 +02:00
Andrey Antukh 2b087678b9 Remove domains. 2014-05-26 17:33:12 +02:00
David Barragán Merino f2e9c55a2c Fix tests (II) 2014-05-22 20:43:24 +02:00
David Barragán Merino ada51440e7 Fix tests 2014-05-22 20:26:36 +02:00
Andrey Antukh 1f1c313ca6 Add tests for project automatic sequence create/delete operations. 2014-05-21 12:38:29 +02:00
Andrey Antukh d601ecba9a Minor cosmetic fixes on pytest integration tests. 2014-05-21 11:01:47 +02:00
Andrey Antukh 363e7ac1d9 Add test for sequences. 2014-05-21 11:01:47 +02:00
David Barragán Merino 2bc3f3560b US #73: Filter entries by a key list 2014-05-16 09:58:42 +02:00
David Barragán Merino d786a1ba95 US #73: Create a user schemaless storage system 2014-05-14 14:01:31 +02:00
David Barragán Merino 4554c0919d Remove unnecessary codding sentence 2014-05-14 13:16:44 +02:00
ikame ac0345047b Some integration tests for auth api. 2014-04-30 09:07:05 +02:00