2014-02-01から1ヶ月間の記事一覧

テストをどこまで書くか

Flask を使ってアプリケーションを開発している。 テストを書いていてどこまで書くかに悩んでる。 例えばユーザー登録の画面があって、Form ライブラリを使っている。 Form にはバリデーションのルールの一つに正規表現を使ったルールを書いた。 その正規表…

Flask-Featureflags で呼び出しを制限する

Flask-Featureflags というものを見つけた。 GitHub - trustrachel/Flask-FeatureFlags: A Flask extension that enables or disables features based on configuration.何をするものかというと、Flask でこの機能はまだ一部のユーザーにベータテストとして…

Injector の仕様変更

Flask-Injector を使っていて以下の様な警告が出た。 Injector Modules (ie. configure) should not be injected. This can result in non-deterministic initialization. Support will be removed in the next release of Injector.configure を直接注入す…