[CentralOH] 2017-12-14 道場 Scribbles 落書/惡文? inotify on osx; parametrize tuples versus dict; pytest color; red green show; unittest versus pytest; dvorak and pytest
Travis Risner
deeptinker at fastmail.com
Fri Dec 15 18:39:17 EST 2017
For equivalent functionality on OSX, use fswatch. See
https://stackoverflow.com/questions/1515730/is-there-a-command-like-watch-or-inotifywait-on-the-mac.
Travis
jep200404 at columbus.rr.com wrote:
> What do OSX folks use instead of inotify to automatically run tests?
>
> while inotifywait -r -e modify src tests; do
> make
> make check
> cat tests/test-suite.log
> done
>
> @pytest.mark.parametrize:
>
> collection of tuples versus dictionary
>
> using a dictionary inherently suggests input versus output.
>
> keys suggest input
> values suggest output
>
> Someone who showed at CARPE a USB powered BRIGHT LED light
> is interested in having it integrated with unit tests
> to show the status in BRIGHT red or BRIGHT green.
>
> tdd-demo base
>
> py.test -f --color=yes .
> pytest -f --color=yes .
>
> friends don't let friends use unittest
>
> https://www.slant.co/versus/9148/9149/~unittest_vs_pytest
>
> Why I use py.test and you probably should too
> http://halfcooked.com/presentations/pyconau2013/why_I_use_pytest.html
>
> =========================
>
> wp:recursion
> nested lists
> https://docs.python.org/3.1/library/itertools.html#itertools.chain
> How many for loops can one nest in Python?
> Why does Python have a limit on the number of static blocks that can be nested?
> https://stackoverflow.com/questions/44972719/why-does-python-have-a-limit-on-the-number-of-static-blocks-that-can-be-nested
>
> two folks practiced pair programming and tdd on fizzbuzz
>
> wp:Antonín Dvořák
> wp:Symphony No. 9 (Dvořák)
> wp:August Dvorak
> wp:QWERTY
> https://en.wikipedia.org/wiki/File:KB_South_Korea.svg
> what is the dvorak version for (두벌식?
> wp:Dubeolsik#Dubeolsik
>
> What do you get when you combine Dvorak with pytest?
>
> Python Testing with pytest
> https://pragprog.com/book/bopytest/python-testing-with-pytest
> Katharine!
>
> but you can qwerty with pytest
>
> https://github.com/james-prior/configuration-files
>
> wp:The Red Green Show
> red green refactor
> https://ifttt.com/blink1
>
> Separating Programming Sheep from Non-Programming Goats
> https://blog.codinghorror.com/separating-programming-sheep-from-non-programming-goats/
>
> https://docs.pytest.org/en/latest/builtin.html
>
> should write own pytest.approx() just for fun:
> class that overloads comparison functions
>
> modify @pytest.mark.parametrize decorator:
> if there is only one argument,
> presume that tuple is a named tuple
> and get variable names from the named tuple
>
> Bad Code
> https://xkcd.com/
>
> duct tape of the internet:
>
> 10 useful ncat (nc) Command Examples for Linux Systems
> https://www.linuxtechi.com/nc-ncat-command-examples-linux-systems/
>
> https://www.merriam-webster.com/dictionary/well
> https://www.merriam-webster.com/dictionary/good
>
> Minors, Foreigners to Be Banned from Bitcoin Trade
> http://english.chosun.com/site/data/html_dir/2017/12/14/2017121401208.html
>
> How to Search PDF Files from the Terminal with pdfgrep
> https://www.maketecheasier.com/search-pdf-files-pdfgrep/
>
> Build a game framework with Python using the Pygame module
> https://opensource.com/article/17/12/game-framework-python
> _______________________________________________
> CentralOH mailing list
> CentralOH at python.org
> https://mail.python.org/mailman/listinfo/centraloh
--
Sent by Travis Risner
More information about the CentralOH
mailing list