mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
12 lines
294 B
Python
12 lines
294 B
Python
from sentry.plugins.base.response import JSONResponse
|
|
|
|
|
|
def test_json_response():
|
|
resp = JSONResponse({}).respond(None)
|
|
assert resp.status_code == 200
|
|
|
|
|
|
def test_json_response_with_status_kwarg():
|
|
resp = JSONResponse({}, status=400).respond(None)
|
|
assert resp.status_code == 400
|