diff options
| author | Jocelyn Delalande <jocelyn@crapouillou.net> | 2017-01-09 10:11:50 +0100 |
|---|---|---|
| committer | Jocelyn Delalande <jocelyn@crapouillou.net> | 2017-01-09 10:11:50 +0100 |
| commit | 376a0b37e3c778d4ac1ace7ca8f92c7625af2c06 (patch) | |
| tree | 238abfb8290fa4ed138f5947da14610f1208e9d1 /budget | |
| parent | 4d5c8a507b3bce8d4802b57ab3b34e5a4cb3750e (diff) | |
| download | ihatemoney-mirror-376a0b37e3c778d4ac1ace7ca8f92c7625af2c06.zip ihatemoney-mirror-376a0b37e3c778d4ac1ace7ca8f92c7625af2c06.tar.gz ihatemoney-mirror-376a0b37e3c778d4ac1ace7ca8f92c7625af2c06.tar.bz2 | |
Fix ServerTestCase.test_unprefixed test
The test was always failing, actual reason is the `app.run.configure()` fails
to reset the `APPLICATION_ROOT` setting which `ServerTestCase.test_prefixed`
overloads (side effect).
This patch *do not* fix app.run.configure as it seems uneasy, but takes a
different approach which has the advantage of making the test more explicit.
Would still be a good thing to investigate more on configure().
Fix #163
Diffstat (limited to 'budget')
| -rw-r--r-- | budget/tests.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/budget/tests.py b/budget/tests.py index eea7537..8c1f973 100644 --- a/budget/tests.py +++ b/budget/tests.py @@ -934,6 +934,7 @@ class ServerTestCase(APITestCase): super(ServerTestCase, self).setUp() def test_unprefixed(self): + run.app.config['APPLICATION_ROOT'] = '/' req = self.app.get("/foo/") self.assertStatus(303, req) |
