2012-10-27 21:44:23 +04:00
|
|
|
"""
|
|
|
|
Force import of all modules in this package in order to get the standard test
|
|
|
|
runner to pick up the tests. Yowzers.
|
|
|
|
"""
|
2013-02-05 00:55:35 +04:00
|
|
|
from __future__ import unicode_literals
|
2012-10-27 21:44:23 +04:00
|
|
|
import os
|
2013-06-03 00:04:47 +04:00
|
|
|
import django
|
2012-10-27 21:44:23 +04:00
|
|
|
|
|
|
|
modules = [filename.rsplit('.', 1)[0]
|
|
|
|
for filename in os.listdir(os.path.dirname(__file__))
|
|
|
|
if filename.endswith('.py') and not filename.startswith('_')]
|
|
|
|
__test__ = dict()
|
|
|
|
|
2013-06-03 00:04:47 +04:00
|
|
|
if django.VERSION < (1, 6):
|
|
|
|
for module in modules:
|
|
|
|
exec("from rest_framework.tests.%s import *" % module)
|