aodag.posthaven.com
aodag's posthaven
http://aodag.posthaven.com/posts.atom
Tag:aodag.posthaven.com,2013:/posts. Tag:aodag.posthaven.com,2013:Post/193579. Pytest, mock, testfixture! まったく某フレームワークのせいでフィクスチャっていうとデータのことばかり. を testing というモジュールにまとめておくのが慣例です。 で、pyramidにもtestingモジュールがあり、 testing.setUp, testing.tearDownというのが、テスト用のコンポーネントレジストリを初期化するフィクスチャです。 Pytest.fixture def config(request): from pyramid import testing config = testing.setUp() def fin(): testing.tearDown() request.addfinalizer(fin) return config. このように書いておくと、 python setup.py test とすれば、現在のディレクトリにインストールされます。 Obviel, that ...
mikepk.com
Michael Kowalchik | Startups | Programming | Technology | Python — Page 2
http://mikepk.com/page/2
Smarterer Badges – My Score on the Google Search test. June 12, 2011. Been a while since I’ve posted, I promise to write more soon. Been super busy getting Smarterer. Ready for launch. For now, though, I thought I’d test out the badge embedding. I spent a lot of time researching Google search when we built our own search engine at Grazr for the VibeMetrix prodict. I guess that paid off in my smarterer score. Lots of obscure details and search operators most people don’t use / know about. March 3, 2011.
spyced.blogspot.com
Jonathan Ellis's Programming Blog - Spyced: FormAlchemy 1.0
http://spyced.blogspot.com/2008/10/formalchemy-10.html
Thursday, October 16, 2008. A little background: a few months ago,. So, I went back to option #3, FormAlchemy. That we think we have a pretty solid release. Especially since I just released 1.0.1 fixing the most obvious problems. :). I think all three FA committers use it mostly with Pylons; that said, FormAlchemy has no dependencies besides SQLAlchemy itself. You could easily use it with werkzeug or web.py or whatever. Here, finally, is a quick FormAlchemy tutorial:. And a handful of methods:. Orders = ...