Beispiel #1
0
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')
Beispiel #4
0
def api() -> DRFClient:
    return DRFClient()
Beispiel #5
0
def api():
    return DRFClient(anon=True,
                     HTTP_X_FORWARDED_FOR='91.194.226.100, 10.0.0.1')
Beispiel #6
0
def api(db):
    return DRFClient()
Beispiel #7
0
def api(user):
    return DRFClient(user=user, god_mode=False)