File: test.py

package info (click to toggle)
drf-extensions 0.8.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,308 kB
  • sloc: python: 7,421; makefile: 11
file content (28 lines) | stat: -rw-r--r-- 569 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Leaving this module here for backwards compatibility but this is just proxy
# for rest_framework.test

import warnings

from rest_framework.test import (
    force_authenticate,
    APIRequestFactory,
    ForceAuthClientHandler,
    APIClient,
    APITransactionTestCase,
    APITestCase
)


__all__ = (
    'force_authenticate,'
    'APIRequestFactory,'
    'ForceAuthClientHandler,'
    'APIClient,'
    'APITransactionTestCase,'
    'APITestCase'
)

warnings.warn(
    'Use of this module is deprecated! Use rest_framework.test instead.',
    DeprecationWarning
)