Anler Hp
a8085a2feb
Return user photo cropped and with absolute url
...
Remember to run `pip install -r requirements.txt` to install the
additional dependencies.
2014-07-01 14:38:26 +02:00
Anler Hp
5ff7ec1c00
Return user's gravatar if has no photo set
...
If the user has no photo set use her gravatar image if available
otherwise use the default avatar image defined in
`settings.DEFAULT_AVATAR_URL`
2014-07-01 12:46:58 +02:00
Anler Hp
cfc35d5ed2
Required estimated-start/end dates for milestones
2014-06-27 14:07:50 +02:00
Alejandro Alonso
077de2bf4e
Updating occ tests
2014-06-25 16:19:40 +02:00
Anler Hp
0a3a33aac5
Optimizing `Project.update_role_points` method
2014-06-24 12:38:29 +02:00
Alejandro Alonso
9b97a4a9c6
Fixing bug when creating objects with OCCResourceMixin
2014-06-23 16:22:08 +02:00
Anler Hp
e98d666a40
Removing unnecessary setup of test database
...
We are already using pg arrays so the unpickle function in sql/tags.sql
is not needed, at least by the moment. I'm removing it because it was
entering in an infinite loop when creating the test database.
2014-06-23 12:26:17 +02:00
Anler Hp
c89c6e7c31
Merge pull request #51 from taigaio/tags
...
Tags using pg arrays
2014-06-23 11:34:02 +02:00
Anler Hp
7ebe443394
Adding models.Model explicitly to tagged models
2014-06-23 10:58:14 +02:00
David Barragán Merino
76bc2ac426
Add more licenses agreements to the tests.integration module
2014-06-22 11:33:44 +02:00
David Barragán Merino
270b315fdf
Add more licenses agreements to the tests.unit module
2014-06-20 19:48:34 +02:00
David Barragán Merino
767024d0d5
Add more licenses agreements to the tests module
2014-06-19 22:46:31 +02:00
Anler Hp
df8a7fb73c
create_membership factory function
2014-06-18 14:13:20 +02:00
Anler Hp
08b4be4e0b
Re-applying migration in conflict
2014-06-18 11:15:33 +02:00
Anler Hp
ac5e163dc5
Implement tags using pg arrays
2014-06-18 10:14:29 +02:00
Alejandro Alonso
dcc7ec0bf2
Adding archived user stories feature and enabling API filtering
2014-06-18 09:16:30 +02:00
Alejandro Alonso
b78a412b46
Fixing tests
2014-06-17 17:01:59 +02:00
Alejandro Alonso
57e1de23dc
Avoiding race conditions in pre_save
2014-06-17 16:34:11 +02:00
Alejandro Alonso
e534920c01
Optimistic Concurrency Control first approach
2014-06-17 16:08:59 +02:00
David Barragán Merino
d6546dc518
Refactor searches module
2014-06-17 15:10:00 +02:00
David Barragán Merino
c712e1d8e7
Add some tests of the github connector
2014-06-12 12:16:37 +02:00
David Barragán Merino
f9327c7069
Fix User model: delete first_name, last_name, permisions and groups, add full_name, and github_id, change description to bio
2014-06-12 12:16:36 +02:00
Andrey Antukh
9ee7335ff0
Notifications: add test for notifications app.
2014-06-12 00:12:15 +02:00
Andrey Antukh
a4e8bcbe12
History: add tests.
2014-06-12 00:12:15 +02:00
Andrey Antukh
39bb7bcfcd
Add additional factories for tests.
2014-06-12 00:12:15 +02:00
Jesús Espino
262776043f
Timeline service implementation
2014-06-05 10:08:42 +02:00
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
Andrey Antukh
baeab00e28
Fix stars tests.
2014-05-28 18:30:41 +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
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
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
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
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
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
1f1c313ca6
Add tests for project automatic sequence create/delete operations.
2014-05-21 12:38:29 +02:00