One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
(djangoapi) shrikrishna@shrikrishna-Inspiron-3543:~/Desktop/DjangoAPI$ coala --files=**/*.py --bears=SpaceConsistencyBear,PEP8Bear --apply-patches --save | |
[WARNING][17:20:08] 'cli' is an internally reserved section name. It may have been generated into your coafile while running coala with `--save`. The settings in that section will inherit implicitly to all sections as defaults just like CLI args do.Please change the name of that section in your coafile to avoid any unexpected behavior. | |
Executing section cli... | |
[INFO][17:20:09] Applied 'ApplyPatchAction' on 'soc_api/account/admin.py' from 'PEP8Bear'. | |
[INFO][17:20:09] Applied 'ApplyPatchAction' on 'soc_api/account/migrations/0004_notification.py' from 'PEP8Bear'. | |
[INFO][17:20:09] Applied 'ApplyPatchAction' on 'soc_api/account/migrations/0003_following.py' from 'PEP8Bear'. | |
[INFO][17:20:09] Applied 'ApplyPatchAction' on 'soc_api/account/migrations/0003_following.py' from 'PEP8Bear'. | |
[INFO][17:20:09] Applied 'ApplyPatchAction' on 'soc_api/account/serializers.py' |
Q: Sorry for a silly question but, while working on an issue, once i find what the error is and fix it,how do i check if it works or not. For eg:- Once i find the fix for the issue coala/coala#5166 , how do i check if it works or not? | |
A: you have to run the tests and/or write new tests, running pytest will run all the tests, you can specify the test file using the pytest -k testFile | |
Q2: How do i make a test file? Can you direct me to any reference from where i can read. Are we supposed to write a test file for all the issue we fix? | |
A1: there is a test folder in the coala repo, that has tests for all the files | |
A2: go through coala docs. we have a tutorial on writing tests | |
Q: So, am i supposed to write test to check the issue coala/coala#5166? | |
A: you should first solve this issue and then you should add tests for the code you added | |
Q: But how would i know if the fix solved the issue? | |
A: you should test it locally | |
Q: Sorry, but how do i do that. Correct me if i am wrong:-I fix the issue in my forked repo .. th |
The gamification leaderboard | |
Username: indmind | |
Score: 90 | |
Level: Legend | |
Activities Performed: | |
1. Solved a difficulty/low issue, number_of_times: 1, performed_at: Dec. 6, 2017, 2:15 p.m. updated_at: Jan. 6, 2018, 7:33 a.m. |
https://github.com/coala/landing-frontendpull/281 | |
https://github.com/coala/coalapull/3991 | |
https://github.com/coala/coalapull/3851 | |
https://github.com/coala/coala-bearspull/2285 | |
https://github.com/coala/coalaCSSpull/19 | |
https://github.com/coala/coalapull/4270 | |
https://github.com/coala/coala-bearspull/1937 | |
https://github.com/coala/coala-bearspull/1993 | |
https://github.com/coala/coala-bearspull/2058 | |
https://github.com/coala/coalapull/5240 |
https://github.com/coala/landing-frontendpull/281 | |
https://github.com/coala/coalapull/3991 | |
https://github.com/coala/coalapull/3851 | |
https://github.com/coala/coala-bearspull/2285 | |
https://github.com/coala/coalaCSSpull/19 | |
https://github.com/coala/coalapull/4270 | |
https://github.com/coala/coala-bearspull/1937 | |
https://github.com/coala/coala-bearspull/1993 | |
https://github.com/coala/coala-bearspull/2058 | |
https://github.com/coala/coalapull/5240 |
class Club(models.Model): | |
name = models.CharField(max_length=100) | |
members = models.ManyToManyField(Member) | |
# Once you have a member it is pretty straightforward to add it to a club: | |
member = Member.objects.get(name='John') | |
club = Club.objects.get(name='sports') | |
club.members.add(member) |