-
posts
-
Testing Django Views Without Using the Test Client
The normal way to test Django views is via the test client. The test client fakes being a wsgi server and actually makes an HTTP request through all of Django’s request routing machinery. There are a number of reasons why this isn’t an ideal appro...
-
BPStudy #29 テスト駆動開発
BPStudy #29 のテスト駆動開発の話でペアプログラミングで、Last Recently Used キャッシュ
(LRU)を自動テストやりながら、実装しようという部分がありました。
最初に僕は二つのリストで10分くらいで実装したんですけど、やっぱりパフォーマンスが出ないと思ったから、時...
-
Testing using a mocked HTTP server
Recently I got some tests working for my
django-lifestream
project. The lifestream imports data from RSS/Atom feeds so there isn’t
a good way to run tests without creating a test HTTP server to serve up
your RSS/Atom.
The tests start up an http s...