Commit Graph

1782 Commits (c808e0d70943c20c90d40d58370a402e1ca0851c)

Author SHA1 Message Date
Andrey Antukh 2333e0e22d Fix unhandled not found exceptions on get starscount on project serializer...
... using annotated stars count value instead of obtaining stars object.
2014-05-28 18:29:10 +02:00
Andrey Antukh 4a4fb30779 Improved get_queryset methods on project api resources.
Attaching stars count to querysets.
2014-05-28 18:28:29 +02:00
Andrey Antukh 1531dcea02 Cosmetic changes on stars __init__.py file. 2014-05-28 18:27:20 +02:00
Andrey Antukh 64185e6890 Add method for attach stars count to projects queryset. 2014-05-28 18:26:53 +02:00
Andrey Antukh 21e5280eec Improve queries and transaction management for better testability. 2014-05-28 18:26:05 +02:00
Andrey Antukh 61aec4676d Remove global project import from stars service. 2014-05-28 18:25:12 +02:00
Andrey Antukh fc26190d03 Cosmetic fixes on project serializers. 2014-05-28 18:23:56 +02:00
Andrey Antukh 0644ffa5cd Minor changes/improvements on exceptions tree. 2014-05-28 18:23:11 +02:00
Andrey Antukh fa42a08da6 Remove unnecesary userstory model import from project models. 2014-05-28 12:55:44 +02:00
Andrey Antukh a998ac0660 Remove global imports from test factories. 2014-05-28 12:55:33 +02:00
Andrey Antukh cefbcda91d Load tags sql on connection is created on tests. 2014-05-28 12:51:44 +02:00
Andrey Antukh dc6e510628 Minor fixes on tags sql file. 2014-05-28 12:51:34 +02:00
Andrey Antukh 051f9d6966 Remove wrong usage of BASE_DIR on settings. 2014-05-28 12:51:19 +02:00
Jesús Espino 13ec5c3d0b Merge pull request #43 from taigaio/stars
Star projects
2014-05-27 18:05:17 +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
Anler Hp bc70ab8cc9 Moving fixture into standalone module and new module tests.utils 2014-05-27 13:28:46 +02:00
David Barragán Merino a1c1491a84 Merge pull request #42 from taigaio/sites-remove
Sites remove & Test refactor
2014-05-26 17:43:39 +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
Jesús Espino 67a7723ab7 Improved a little the history freezers and values registers api 2014-05-26 10:35:08 +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
David Barragán Merino d507b63f44 Fix requirements 2014-05-22 19:57:30 +02:00
David Barragán Merino eb29332bb4 Change travis configuration to use the new tests system 2014-05-22 18:51:34 +02:00
Anler Hp 8003abbbef Moving neighbors logic into standalone module 2014-05-22 18:34:03 +02:00
Anler Hp ac49a76146 Automatically skip slow tests
You can mark a test as slow using:

    @pytest.mark.slow
    def test_something():
        ...

Use the option "--runslow" to tell the test runner to also include slow
tests:
        py.test --runslow ...
2014-05-22 18:34:03 +02:00
Anler Hp 55f5c70e4e Turning off signals dispatch when testing units
Model signals pre_save and post_save will be turned off when running
unit tests because they are interfering with the tests.
2014-05-22 18:34:03 +02:00
Anler Hp 9bca29ce20 Creating reusable "filter_by_tags" function.
Moving the filtering-by-tag logic out of TagsFilter into a reusable function.
2014-05-22 18:34:03 +02:00
Anler Hp e1fdc36301 Pytest mutable object fixture.
Usage:
        def test_something(object):
            # mutate object as needed
2014-05-22 18:34:03 +02:00
Jesús Espino 97943ee5ed Removing list_of_milestones from project api 2014-05-22 18:05:26 +02:00
Jesús Espino bb73c2c06d Flake8 corrections 2014-05-22 13:14:28 +02:00
Jesús Espino 5e95175654 Adding render_and_extract function to mdrender service 2014-05-22 13:05:45 +02:00
Jesús Espino 6a48e28ca4 Improving coverage of mdrender to 100% 2014-05-21 18:57:37 +02:00
Jesús Espino c7ee910647 Some refactoring on mdrender 2014-05-21 17:51:43 +02:00
Andrey Antukh 3c4696962f Remove code from self destroy drf mixin related to pre/post hooks.
Because drf now has support for them.
2014-05-21 15:59:30 +02:00
Jesús Espino 4aaa695107 Fixed references api on task resolution 2014-05-21 13:37:11 +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
Jesús Espino e7473f7919 Fixed problem of inconsistence of references 2014-05-21 10:19:17 +02:00
Jesús Espino a402e3ba40 Adding project foreign key to references 2014-05-21 10:19:17 +02:00
Anler Hp d29fd72198 Fix typo that raises KeyError in taskboard 2014-05-20 17:04:20 +02:00
Andrey Antukh 14a8afcadc Remove email from unique constrain on membership model. 2014-05-20 16:17:42 +02:00
Jesús Espino f6ea608a04 Moving wiki mentions to an extension 2014-05-20 12:23:59 +02:00
Jesús Espino db91acb065 Moving emoji to an extension 2014-05-20 11:33:20 +02:00
Jesús Espino 4bae101c83 Fixed wiki tests broken accidentally 2014-05-20 11:33:20 +02:00
Jesús Espino 40111dac47 Some extra tests for the wiki 2014-05-20 11:33:20 +02:00
David Barragán Merino 2b6423a396 Fix watchers validator like in stable branch 2014-05-20 10:21:29 +02:00