We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3dc40f9 commit ca341efCopy full SHA for ca341ef
tests/conftest.py
@@ -41,6 +41,7 @@ def pytest_configure():
41
'django.contrib.staticfiles',
42
'rest_framework',
43
'rest_framework.authtoken',
44
+ 'tests.importable',
45
'tests',
46
),
47
PASSWORD_HASHERS=(
tests/importable/__init__.py
@@ -0,0 +1,2 @@
1
+
2
+from rest_framework import compat # noqa
tests/importable/test_installed.py
@@ -0,0 +1,13 @@
+from django.conf import settings
3
+from tests import importable
4
5
6
+def test_installed():
7
+ # ensure that apps can freely import rest_framework.compat
8
+ assert 'tests.importable' in settings.INSTALLED_APPS
9
10
11
+def test_imported():
12
+ # ensure that the __init__ hasn't been mucked with
13
+ assert hasattr(importable, 'compat')
0 commit comments