Skip to content

Instantly share code, notes, and snippets.

Shrikrishna Singh sks444

Block or report user

Report or block sks444

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View s.html
View s.html
View gist:50f55fb15eee7a8d9a9626805826d1a6
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.
View Q&A.txt
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
sks444 /
Created Apr 12, 2018 — forked from PurpleBooth/
A template to make good

Project Title

One Paragraph of project description goes here

Getting Started

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.


View coala-bears run on repo
(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/' from 'PEP8Bear'.
[INFO][17:20:09] Applied 'ApplyPatchAction' on 'soc_api/account/migrations/' from 'PEP8Bear'.
[INFO][17:20:09] Applied 'ApplyPatchAction' on 'soc_api/account/migrations/' from 'PEP8Bear'.
[INFO][17:20:09] Applied 'ApplyPatchAction' on 'soc_api/account/migrations/' from 'PEP8Bear'.
[INFO][17:20:09] Applied 'ApplyPatchAction' on 'soc_api/account/'
You can’t perform that action at this time.