Testing coverage of your Django code

Just writing tests for your Django codebase is not enough. You need to check how much of the code is covered in your tests. For this, there are some tools available. Again, it is not just the number of lines of code tested that matters. What matters is “Are these lines important?”. Well, for this, we have to use our head. covergae is a tool for checking test coverage of python applications. django-test-coverage was built on top of coverage.py to meet requirements of django tests. ...

June 12, 2011 · 2 min · Ratnadeep Debnath

Fixing unittests for transifex

Last week, I have been working on fixing the existing unittests for Transifex. The Transifex codebase is constantly being updated. So, some of the previous test cases failed. Before this, I had already written a unittest or two for some of the codes that I contributed to Transifex. But I did not study the Django unittest framework deeply for that. This time, it was different. I took my time to go through the Django documentation on testing. And then I started to work on fixing the existing tests. To avoid confusion, I ran test on each component separately. Only a few were containing errors like projects, lotte, release, resources, projects, txcommon, suggestions, charts, etc. ...

June 11, 2011 · 2 min · Ratnadeep Debnath

It feels good to blog again

Well, it has been quite some time since my last blog. The last days of my college, yes, they were very hectic. I had to complete my college project. Well, I had to handle a couple of preventions and seminars, mostly by myself ( although in a group). I finally implemented scatternet formation and routing and built a relay chat kind of thing on top of that. I named it Bluetooth Relay Chat. It worked quite, except for the interface not being that WOW. One can send public messages and private messages as well. I am maintaining the code as a private project in bitbucket. I will release the code soon. ...

June 9, 2011 · 2 min · Ratnadeep Debnath

Learnt to use SSH tunnel - Thanks to BSNL 3G, it won't let me login to trac.transifex.org

For some days, I was not able to login to trac.transifex.org. I though that it might be a browser issue. So, I deleted the browser data and tried to login using firefox, opera and google-chrome, but I still couldn’t login. Then, I established an ssh tunnel from my computer to a remote server and set up proxy settings in my browser to use the ssh tunnel. And now, I can login correctly. This shows that it is not a browser issue but a connection issue. I think something is terribly wrong with BSNL 3G servers and their maintainers. ...

March 19, 2011 · 1 min · Ratnadeep Debnath

These days are hectic

For some days, I have been working like anything for my final semester project in college, because I have to. I have also some tasks to do for transifex. When will the college be over? But I have to find some time, anyhow.

March 17, 2011 · 1 min · Ratnadeep Debnath

sufferring from hepatitis :-(, have to go home

From last week, I have not been feeling good. I was getting tired very quickly, even from a small walk. And now I have taken to bed. I am now eating only boiled food. I will be leaving for home as soon as possible. I will get quick recovery under mother’s care.

February 24, 2011 · 1 min · Ratnadeep Debnath

Mailing and notifications working in my local Transifex

Thanks to fim, the mailing and notification system is finally working in my local transifex setup. Now I can go forward with writing another patch.

February 23, 2011 · 1 min · Ratnadeep Debnath

RPM for tweepy got approved :)

Pavel Zhukov approved my review request for tweepy-1.7.1. I’ll submit an SCM request now. Review request at https://bugzilla.redhat.com/show_bug.cgi?id=675104

February 21, 2011 · 1 min · Ratnadeep Debnath

Contributing to transifex

For some time, I have been hanging around with django. I got some cool video tutorials on the web on django. They helped me a lot to start coding in django. At the same time, I was also going through the Transifex source code. After some time, I browsed through the tickets in trac.transifex.org and started with fixing ticket #679. I had to go through javascript, jquery, html in addition to write the patch for #679. I also wrote a custom pagination plugin for dataTables pagination for fixing the issue mentioned in ticket #679. I submitted the patch upstream for review. I hope it will be accepted. ...

February 21, 2011 · 2 min · Ratnadeep Debnath

Testing python-wordpress-xmlrpc

Success!

February 12, 2011 · 1 min · Ratnadeep Debnath