예제 #1
0
파일: conftest.py 프로젝트: pavelpy/django
def api():
    return DRFClient()
def api():
    return DRFClient(anon=True)
def fake_client():
    return DRFClient(anon=True, HTTP_X_FORWARDED_FOR='8.8.8.8, 10.0.0.1')
예제 #4
0
def api() -> DRFClient:
    return DRFClient()
예제 #5
0
def api():
    return DRFClient(anon=True,
                     HTTP_X_FORWARDED_FOR='91.194.226.100, 10.0.0.1')
예제 #6
0
def api(db):
    return DRFClient()
예제 #7
0
def api(user):
    return DRFClient(user=user, god_mode=False)