I've been frustrated with the available Python testing frameworks lately, after playing around with Ruby and Node.js I just cant get enough of automated testing and coloured output. Out of the box there is no way to do this in Python, and the available modules just aren't there yet.
This is part 2 of a multi-part tutorial: Learn Test Driven Development in Flast - Part 1
Continuing from part one, its time to start on our Users and Authentication system. The first thing we should do is start a new branch in git.
Firstly, a caveat for this article: Writing this is part of my own process in learning how to TDD a flask app, I haven't done more than just play with the framework until this point and am in no way an expert. The lack of decent information out there on how to do this is stagering, so hopefully my documenting this learning process will help others starting out.
In case you missed the news, UbuntuOne is shutting down. This has caused me a headache, as I've relied on it for syncing copies of my code & local git repos -- Yes, that was a horrible way of doing things, but it was quick and easy. -- as well as some other files I didn't want to loose. My solution to the current dilema has been two fold:
A handy bit of Views hackery in Drupal 7. Of all the things Drupal does out of the box, this is probably the most suprising thing it doesn't do.
I'm about a week into using Arch Linux and loving it, but every now and then I run into a random problem. Last nights was getting Dropbox to connect.
According to the ArchWiki, on the first run of dropbox after installing it from the AUR it should provide a pop up to get your configuration choices, and sign into your account. For me however, it simply loaded the icon and hang at "Connecting..."
The ArchWiki even has a section about this problem, which is completely wrong and wont fix the issue. Deep in the comments section in the AUR was a working solution.
I've been playing with the idea of converting to Arch Linux, at least on a trial basis, for some time now. A couple weeks ago I spun up a VM and installed it without a fuss, so it seemed like it would be okay to install on my laptop, but not having a lot of free time I put it off.