tickets: 8551
This data as json
id | created | changetime | last_pulled_from_trac | stage | status | component | type | severity | version | resolution | summary | description | owner | reporter | keywords | easy | has_patch | needs_better_patch | needs_tests | needs_docs | ui_ux |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8551 | 2008-08-26 04:15:55 | 2009-02-21 07:29:21 | 2022-03-06 03:42:33.581527 | Ready for checkin | closed | Testing framework | dev | fixed | Add REMOTE_ADDR: '127.0.0.1' to TestClient environment by default | The fake environment django.test.client.Client sets up is missing REMOTE_ADDR. It could be very safely and accurately defaulted to localhost (127.0.0.1). Luckily this issue is very easy to work around when instantiating the test Client: {{{ c = Client(REMOTE_ADDR='127.0.0.1') }}} | ericholscher | schmichael | 0 | 1 | 0 | 0 | 0 | 0 |