Commit Graph

805 Commits (ac49a76146ad002db7b726495556389dcca3f0f5)

Author SHA1 Message Date
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
Jesús Espino 270b48dc45 Now tags.sql works correctly on vagrant and can be execute multiple times 2014-05-20 09:35:51 +02:00
Jesús Espino a2846fe31c Some extra optimization 2014-05-20 09:26:25 +02:00
Jesús Espino a80ffe6fe7 Optimized issues stats of a project 2014-05-20 08:28:35 +02:00
Jesús Espino 9496f4e2fb Two small performance improvements 2014-05-19 20:55:29 +02:00
Jesús Espino b72daddd08 A little optimization on userstories listing 2014-05-19 17:28:18 +02:00
Jesús Espino 7634ab5078 Some optimization on get project from the api 2014-05-19 16:47:59 +02:00
Andrey Antukh bb595b8fdd Reference refactor.
(Merged from stable/reference-refactor)
2014-05-19 13:25:40 +02:00
Andrey Antukh 5c96919c24 Fix inconsistent migrations. 2014-05-19 13:25:40 +02:00
Jesús Espino ec49205ae6 Removing unnecesary commented tests 2014-05-19 12:51:36 +02:00
Jesús Espino a91bc3b008 Fixed problem in attachments api 2014-05-19 12:49:47 +02:00
Jesús Espino 53425bedba Adding diff patch html for description fields 2014-05-16 22:20:01 +02:00
Jesús Espino be5e37187c Adding some tests and a improved version of the wikilinks extension 2014-05-16 22:20:01 +02:00
David Barragán Merino 06170b868f Replace 'ir' for 'is' 2014-05-16 13:45:00 +02:00
David Barragán Merino 43e4ff78b6 Fix more tests 2014-05-16 12:33:38 +02:00
David Barragán Merino 3d7d660ab2 Fix tests 2014-05-16 10:31:38 +02:00
David Barragán Merino a84b50c00b Fix tests 2014-05-16 10:17:35 +02:00
David Barragán Merino 2bc3f3560b US #73: Filter entries by a key list 2014-05-16 09:58:42 +02:00
Andrey Antukh 2af4ed1f21 Merge pull request #39 from ikame/master
US #103 - Wiki links crud (API)
2014-05-15 19:45:07 +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
Anler Hp 552a9d83f8 US #103 - Wiki links crud (API) 2014-05-14 10:32:14 +02:00
David Barragán Merino 4eea5e473a Fix ProjectAdminPermissions 2014-05-13 18:44:47 +02:00
Andrey Antukh 19537cac36 Set default email backend to console on common settings. 2014-05-13 18:12:47 +02:00
Andrey Antukh 6f64090904 Improved 404 response message. 2014-05-13 18:12:47 +02:00
David Barragán Merino 9acddf613a Improve JSON serializer field 2014-05-13 16:11:50 +02:00
David Barragán Merino f54133064b Remove unnecesary imports 2014-05-13 16:11:50 +02:00
Anler Hp 9f6a7da01d Fixing typo in requirements-devel.txt 2014-05-13 15:56:50 +02:00