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 ...
blog.axant.it
What’s new about Sprox 0.8 | AXANT Tech Blog
http://blog.axant.it/archives/457
What’s new about Sprox 0.8. 16 August, 2012. 22 August, 2012. Today Sprox 0.8 got released, it is the first release to add ToscaWidgets2 support. Depending on which version of ToscaWidgets is available inside your environment Sprox will either use TW1 or TW2 to generate its forms. Attribute inside model declaration. Dropdown field names =. The previous code example makes Sprox use the Parent data field for selection fields when choosing the parent of Child entities. By adding a sprox. Required fields are...
adampointer.blogspot.com
The Code Monster: Using Flask and ToscaWidgets
http://adampointer.blogspot.com/2011/02/using-flask-and-toscawidgets.html
Web development and general geekery. Saturday, 12 February 2011. Using Flask and ToscaWidgets. Is yet another web framework for Python. It is based on Werkzeug for its controller functions, Jinja2 for the views and can use the excellent SQLAlchemy. Is a Python widget library and has many easy to use widgets such as date pickers, captcha forms and trees. The most compelling reason to use ToscaWidgets for me is to use the Sprox form generation library. A Load of CRUD. Before we can use Sprox we need to wra...
adampointer.blogspot.com
The Code Monster: February 2011
http://adampointer.blogspot.com/2011_02_01_archive.html
Web development and general geekery. Saturday, 12 February 2011. Using Flask and ToscaWidgets. Is yet another web framework for Python. It is based on Werkzeug for its controller functions, Jinja2 for the views and can use the excellent SQLAlchemy. Is a Python widget library and has many easy to use widgets such as date pickers, captcha forms and trees. The most compelling reason to use ToscaWidgets for me is to use the Sprox form generation library. A Load of CRUD. Before we can use Sprox we need to wra...