VirtualTam's bookmarks
45 bookmarks found
-
Python: run specific unit tests
2015-02-13 Given your unittests are in the
tests
directory:1# run a specific test module 2python -m unittest tests.<module> 3 4# run a specific test suite 5python -m unittest tests.<module>.<class> 6 7# run a specific test 8python -m unittest tests.<module>.<class>.<test> 9 10# run tests matching a given pattern 11python -m unittest discover -s tests -p <pattern>
-
electric-indent has been activated by default in emacs 24
to disable it for Python: (add-hook 'python-mode-hook (lambda () (set (make-local-variable 'electric-indent-functions) (list (lambda (arg) 'no-indent)))))
-
TL;DR: you won't.
This website is rather a good memo regarding each language's foundations:
- what's its general purpose?
- how to write core instructions, such as functions, loops, conditional structures?
I find this kind of reminder quite useful when it comes to documentation languages (e.g. TeX, Markdown)