Check out how all your default styles look, before you start having to write overrides to override your overrides.
Pour exécuter des tests en Python à partir de la console, il faut utiliser nosetests. Nosetests est dispo sur les dépots Python avec son plugins Google AppEngine :
sudo pip install nose nosegae
Il faut ensuite appeler la bonne ligne de commande. Pour se faire, voici une fonction bash à mettre dans son ~/.bashrc :
function gae-test()
{
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function draft() | |
{ | |
local editor="" | |
local title="" | |
while test $# -gt 0; do | |
case "$1" in | |
-c) | |
editor="$2" | |
shift | |
shift |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'date' | |
desc "Given a title as an argument, create a new post file" | |
task :draft, :title do |t, args| | |
puts "Creating _drafts/#{args.title}" | |
filename = "#{args.title.gsub(/\s/, '_').downcase}.markdown" | |
path = File.join("_drafts", filename) | |
if File.exist? path; raise RuntimeError.new("Won't clobber #{path}"); end | |
File.open(path, 'w') do |file| | |
file.write <<-EOS |
NewerOlder