]> git.ipfire.org Git - thirdparty/patchwork.git/commit
Don't import the REST framework if it is disabled
authorDaniel Axtens <dja@axtens.net>
Tue, 9 Aug 2016 04:55:21 +0000 (14:55 +1000)
committerStephen Finucane <stephenfinucane@hotmail.com>
Sun, 21 Aug 2016 16:00:22 +0000 (17:00 +0100)
commit9983229eb6b96f40ca66087132077e6887e8721b
tree5a22706dfa1b7779016147a4b582794c28be3c06
parent22bfc1e7a06b323c2659aba1e86515db8f63637e
Don't import the REST framework if it is disabled

In the disabled case, also stub out the APITestCase class.

Signed-off-by: Daniel Axtens <dja@axtens.net>
Reviewed-by: Stephen Finucane <stephenfinucane@hotmail.com>
patchwork/tests/test_rest_api.py